highly-attractive-step-definitions

Re-usable Gherkin step definitions for Cucumber.js

Usage no npm install needed!

<script type="module">
  import highlyAttractiveStepDefinitions from 'https://cdn.skypack.dev/highly-attractive-step-definitions';
</script>

README

Highly Attractive (Gherkin) Step Definitions

Prerequesites

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!