Example BDD project with cucumberjs and nightmare libraries
JavaScript Gherkin Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
tests
.gitignore
.travis.yml
Gruntfile.js
Jenkinsfile
Readme.md
package.json
validate-test-run.sh

Readme.md

Build Status

nightmare-cucumberjs

Overview

This project is an example of BDD (behaviour driven development) setup with nightmare and cucumberjs frameworks.

You can use example setup in this project for creating BDD tests for your web project.

You can also setup continuous application monitoring for your web apps with the help of automated CI jobs.

How to start using?

Clone this code repositary. Install all required nodejs packages with

npm install

You must have Grunt installed on your box.

You can now run

grunt test

The output should green (passing tests):

Feature: 
	I would like to monitor several websites
 	and validate that their titles are as expected.

	Scenario: httpbin.org website should be up and running
	Given I visit httpbin.org website
	Then website title should be "httpbin(1): HTTP Client Testing Service"

	Scenario: github.com website should be up and running
	Given I visit github.com website
	Then website title should be "GitHub · Where software is built"
	
	Scenario: wikipedia.org site should be up and running
	Given I visit www.wikipedia.org website
	Then website title should be "Wikipedia"

By @sauliuz and popularowl.com