Reputation: 71
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
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