highly-attractive-step-definitions
v0.1.0
Published
Re-usable Gherkin step definitions for Cucumber.js
Downloads
1
Readme
Highly Attractive (Gherkin) Step Definitions
Prerequesites
- Cucumber.js
- A running webdriver (PhantomJS, Selenium, BrowserStack, etc.)
- Node.js/NPM
Install
Run $ npm install --save-dev highly-attractive-step-definitions
to include this library into your package.json's devDependencies.
Usage
In your features/step_definitions/myStepDefinitions.js
(or similar):
module.exports = function() {
var options = {/* Optional configurations to pass to the web driver. */};
require('highly-attractive-step-definitions').call(this, options);
}
That's the bare minimum to have these step definitions available to you. Take a peak into the steps
directory to see the provided step definitions.
At this point, use the documentation on Cucumber-JS on how to write and execute your features.
Oh yeah, make sure You're running a web driver on 127.0.0.1:4444
!