JSPM

  • Created
  • Published
  • Downloads 14578
  • Score
    100M100P100Q145716F
  • License MIT

Protractor framework for Cucumber.js

Package Exports

  • protractor-cucumber-framework

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (protractor-cucumber-framework) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Protractor Cucumber Framework

Build Status

This framework was originally part of angular/protractor and is now a separate module to decouple cucumber.js.

Install

npm install --save-dev protractor-cucumber-framework

Implementation

To implement this framework, utilize the protractor custom framework config option:

exports.config = {
  // set to "custom" instead of cucumber.
  framework: 'custom',

  // path relative to the current config file
  frameworkPath: require.resolve('protractor-cucumber-framework'),
  
  // require feature files
  specs: [
    'path/to/feature/files/**/*.feature' // accepts a glob
  ],
  
  cucumberOpts: {
    // require step definitions
    require: [
      'path/to/step/definitions/**/*.steps.js' // accepts a glob
    ]
  }
};

Contributing

Pull requests are welcome. Commits should have an appropriate message and be squashed.

For Contributors

Clone the github repository:

git clone https://github.com/protractor-cucumber-framework/protractor-cucumber-framework
cd protractor-cucumber-framework
npm install

Start up a selenium server:

npm run webdriver

Start up the test app that tests will be run against in a separate shell:

npm start

Run the tests in a separate shell:

npm test