1 | Protractor 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 |
|
6 | This framework was originally part of [angular/protractor](https://github.com/angular/protractor) and
|
7 | is now a separate module to decouple [cucumber.js](https://github.com/cucumber/cucumber-js).
|
8 |
|
9 | Install
|
10 | -------
|
11 |
|
12 | `npm install --save-dev protractor-cucumber-framework`
|
13 |
|
14 | Implementation
|
15 | --------------
|
16 |
|
17 | To implement this framework, utilize the `protractor` custom framework config option:
|
18 |
|
19 | ```js
|
20 | exports.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 |
|
29 | Contributing
|
30 | ------------
|
31 |
|
32 | Pull requests are welcome. Commits should have an appropriate message and be squashed.
|
33 |
|
34 | For Contributors
|
35 | ----------------
|
36 | Clone the github repository:
|
37 |
|
38 | git clone https://github.com/mattfritz/protractor-cucumber-framework
|
39 | cd protractor-cucumber-framework
|
40 | npm install
|
41 |
|
42 | Start 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 |
|
47 | The test suite runs against the included test application. Start that up with
|
48 |
|
49 | npm start
|
50 |
|
51 | Then run the tests with
|
52 |
|
53 | npm test
|