UNPKG

1.55 kBMarkdownView Raw
1Protractor Cucumber Framework
2=============================
3
4[![Build Status](https://travis-ci.org/mattfritz/protractor-cucumber-framework.svg?branch=master)](https://travis-ci.org/mattfritz/protractor-cucumber-framework)
5
6This framework was originally part of [angular/protractor](https://github.com/angular/protractor) and
7is now a separate module to decouple [cucumber.js](https://github.com/cucumber/cucumber-js).
8
9Install
10-------
11
12`npm install --save-dev protractor-cucumber-framework`
13
14Implementation
15--------------
16
17To implement this framework, utilize the `protractor` custom framework config option:
18
19```js
20exports.config = {
21 // set to "custom" instead of cucumber.
22 framework: 'custom',
23
24 // path relative to the current config file
25 frameworkPath: require.resolve('protractor-cucumber-framework')
26};
27```
28
29Contributing
30------------
31
32Pull requests are welcome. Commits should have an appropriate message and be squashed.
33
34For Contributors
35----------------
36Clone the github repository:
37
38 git clone https://github.com/mattfritz/protractor-cucumber-framework
39 cd protractor-cucumber-framework
40 npm install
41
42Start up a selenium server. By default, the tests expect the selenium server to be running at `http://localhost:4444/wd/hub`. A selenium server can be started with `webdriver-manager`.
43
44 node_modules/.bin/webdriver-manager update --standalone
45 node_modules/.bin/webdriver-manager start
46
47The test suite runs against the included test application. Start that up with
48
49 npm start
50
51Then run the tests with
52
53 npm test