Use the below steps to execute a test in Cucumber:
1. Open the commond prompt in ruby & rails.
2. Reach at the particular folder where test is stored.
3. Type cucumber.
Note :
We can use tagging to execute a particular feature file or a particular scenario.
1. Open the commond prompt in ruby & rails.
2. Reach at the particular folder where test is stored.
3. Type cucumber.
Note :
We can use tagging to execute a particular feature file or a particular scenario.
- To run only scenarios with a certain tag we pass Cucumber -t option and the name of the tag.
- To run all of the scenarios except the ones with a certain tag we place a tilde before the tag name.
No comments:
Post a Comment