This repository has been archived by the owner on Jan 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d7779dd
commit ae0367f
Showing
1 changed file
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,45 @@ | ||
# Magellan-Saucelabs-Executor | ||
# Magellan-Local-Executor | ||
|
||
[![Build Status](https://travis-ci.org/TestArmada/magellan-local-executor.svg?branch=master)](https://travis-ci.org/TestArmada/magellan-local-executor) | ||
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT) | ||
[![codecov](https://codecov.io/gh/TestArmada/magellan-local-executor/branch/master/graph/badge.svg)](https://codecov.io/gh/TestArmada/magellan-local-executor) | ||
|
||
Executor for [Magellan](https://github.com/TestArmada/magellan) to run [nightwatchjs](http://nightwatchjs.org/) tests in local environment. | ||
Executor for [Magellan](https://github.com/TestArmada/magellan) to run [nightwatchjs](http://nightwatchjs.org/) tests in local environment. | ||
|
||
**PLEASE NOTE: Executor is only supported by magellan version 10.0.0 or higher**. | ||
|
||
## What does this executor do | ||
1. It resolves `nightwatch.json`, provide nightwatch execution environment to magellan | ||
2. It runs nightwatch test by forking it as magellan child process | ||
|
||
## How To Use | ||
Please follow the steps | ||
|
||
1. `npm install testarmada-magellan-local-executor --save` | ||
2. add following block to your `magellan.json` (if there isn't a `magellan.json` please create one under your folder root) | ||
```javascript | ||
"executors": [ | ||
"testarmada-magellan-local-executor" | ||
] | ||
``` | ||
|
||
3. `./node_modules/.bin/magellan ----help` to see if you can see the following content printed out | ||
``` | ||
Executor-specific (testarmada-magellan-local-executor) | ||
--local_browser=browsername Run tests in chrome, firefox, etc (default: phantomjs). | ||
--local_browsers=b1,b2,.. Run multiple browsers in parallel. | ||
--local_list_browsers List the available browsers configured. | ||
``` | ||
|
||
Congratulations, you're all set. | ||
## Example | ||
To run test in local chrome | ||
``` | ||
$ ./node_modules/.bin/magellan --local_browser chrome --test xxx | ||
``` | ||
To run tests in local chrome and firefox | ||
``` | ||
$ ./node_modules/.bin/magellan --local_browsers chrome,firefox --test xxx | ||
``` |