1 | # magellan-nightwatch-plugin
|
2 |
|
3 | A magellan plugin that connects [magellan](https://github.com/TestArmada/magellan) and [nightwatch](http://nightwatchjs.org/).
|
4 |
|
5 | ## Usage
|
6 |
|
7 | 1. Add following code to your `package.json`.
|
8 |
|
9 | ```
|
10 | "testarmada-magellan-nightwatch-plugin": "^5.0.0"
|
11 | ```
|
12 |
|
13 | 2. Add following code to your `magellan.json` (optional)
|
14 |
|
15 | ```
|
16 | "framework": "testarmada-magellan-nightwatch-plugin"
|
17 | ```
|
18 |
|
19 | Please notice that the step 2 is optional, magellan will try to load this plugin by default. It won't hurt if the plugin is out found. However, it is still recommended to add it to your `magellan.json`
|
20 |
|
21 | ## What does it do
|
22 |
|
23 | This plugin connects magellan and nightwatch by
|
24 |
|
25 | ```
|
26 | 1. passing down magellan test filters (by tags, groups and/or tests) to nightwatch for test case selection.
|
27 | 2. modifying necessary ports so that magellan can run test in parallel (multi-worker) mode.
|
28 | 3. fixing some easy-to-forget configurations in `nightwatch.json` if there is any, to run test in parallel (multi-worker) mode.
|
29 | 4. passing down node env/configurations for child process spawn purpose.
|
30 | ```
|
31 |
|