Skip to content

Demonstartion project for Cucumber.js and Nightwatch.js integration

License

Notifications You must be signed in to change notification settings

ZIJ/nightwatch-cucumber

 
 

Repository files navigation

alt-tag

nightwatch-cucumber

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

Installation

$ git clone git@github.com:mucsi96/nightwatch-cucumber.git
$ cd nightwatch-cucumber
$ npm install

Running

$ node nightwatch.js

Features

Feature Tags

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

About

Demonstartion project for Cucumber.js and Nightwatch.js integration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 93.1%
  • Gherkin 6.9%