Running the Cucumber suite
Now that we are familiar with the project layout, let's execute some tests. To start, let's install the Cucumber gem. So, run the following command in the terminal:
gem install cucumber
After the gem has been installed, we have several commands we can use to run our tests from the root of the working directory:
- To execute the whole suite in the
default
profile, we simply run the following command in our terminal from the root of our workspace:cucumber
The Cucumber gem will automatically find the
features
directory. If your features are located in another directory, you will need to specify the path to that directory like this:cucumber some/other/directory
- Use the
-p
flag to specify a different profile at the time of ...
Get Selenium Design Patterns and Best Practices now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.