trupti rath
trupti rath

Reputation: 71

Is there a way to run cucumber scenarios in parallel

I am using Ruby and cucumber to run my end-to end tests . I have lots of tests which take longer time to run . I am using 'parallel_tests' to run my 'features' in parallel which has minimised the execution time significantly .But I wanted to know if there is a way to run 'scenarios' in parallel

Upvotes: 2

Views: 1386

Answers (1)

Jeff Price
Jeff Price

Reputation: 3229

Yes! There is.

Using the cukeforker library you can run either features or scenarios in parallel.

https://github.com/jarib/cukeforker

# parallelize per scenario, with one JUnit XML file per scenario.
CukeForker::Runner.run CukeForker::Scenarios.tagged(%W[@edition ~@wip])
                       :extra_args => %W[-f CukeForker::Formatters::JunitScenarioFormatter --out results/junit]

Upvotes: 2

Related Questions