Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running a cucumber feature multiple times

I'm trying to run a cucumber feature multiple times (i.e 500 times). Is there a way of doing this than me having to type in the same command everytime? I'm guessing this can be done using Rake? I'm not an expert in using rake or cucumber.

Will appreciate your help.

Thanks

like image 361
David Ogilo Avatar asked Jun 16 '10 10:06

David Ogilo


People also ask

How do I run Cucumber feature multiple times?

If you want to run just one scenario from your feature, just tag it instead. This way you can run as many or as few tests as you want 500 times, without needing to use Rake or mess with the command line.

How do you pass multiple examples in Cucumber feature?

When we have multiple test data to pass in a single step of a feature file, one way is to pass multiple parameters and another way is to use Data Tables. Data Tables is a data structure provided by cucumber. It helps you to get data from feature files to Step Definitions.

Can you have more than one scenario in a feature file?

Feature file can contain multiple scenarios or scenario outlines. We can write all possible Scenarios of a particular feature in a feature file. By using the keyword "Scenario" or "Scenario Outline", One Scenario can be separated from another.


1 Answers

ruby -e '500.times { `cucumber` }'
like image 78
lambdabutz Avatar answered Sep 29 '22 22:09

lambdabutz