Demonstartion project for Cucumber.js and Nightwatch.js integration. This demonstrates how to use a BDD-style approach for crossbrowser testing:
- Describe user stories in Cucumber
- Map them to HTML/DOM operations in Nightwatchjs
- Run using either local Selenium driver or cloud based webdriverJs services such as SauceLabs or BrowserStack
$ git clone git@github.com:mucsi96/nightwatch-cucumber.git
$ cd nightwatch-cucumber
$ npm install
$ node nightwatch.js
You can selectively run features based on tags. More details
// google.feature
@google @search
Feature: Google Search
Scenario: Searching Google
Given I open Google's search page
Then the title is "Google"
And the Google search form exists
$ node nightwatch.js --tag google
You can also skip features based on tags
node nightwatch.js --skiptags google