Monday, November 14, 2011

Execute a test in Cucumber

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.

  • To run only scenarios with a certain tag we pass Cucumber -t option and the name of the tag.
            cucumber features  -t focus

  • To run all of the scenarios except the ones with a certain tag we place a tilde before the tag name.
           cucumber features  -t ~focus

No comments:

Post a Comment

Search This Blog