Commit 1e4c075f authored by chriseth's avatar chriseth Committed by GitHub

Merge pull request #108 from redsquirrel/browser-testing-cli-polish

Polishing the cli for browser testing
parents 0c97e001 b9459f28
...@@ -52,10 +52,10 @@ To run the Selenium tests via nightwatch serve the app through a local web serve ...@@ -52,10 +52,10 @@ To run the Selenium tests via nightwatch serve the app through a local web serve
Then you will need to either: Then you will need to either:
1. Have a Selenium server running locally on port 4444. 1. Have a Selenium server running locally on port 4444.
* Run: `./node_modules/nightwatch/bin/nightwatch --env local` * Run: `npm run browser-test`
1. Or, install and run SauceConnect. 1. Or, install and run SauceConnect.
* Run: `sc -u <USERNAME> -k <ACCESS_KEY>` (see .travis.yml for values) * Run: `sc -u <USERNAME> -k <ACCESS_KEY>` (see .travis.yml for values)
* Run: `./node_modules/nightwatch/bin/nightwatch --env remote` * Run: `npm run browser-test-sc`
## Usage as a Chrome Extension ## Usage as a Chrome Extension
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
"description": "Minimalistic browser-based Solidity IDE", "description": "Minimalistic browser-based Solidity IDE",
"scripts": { "scripts": {
"test": "node test/index.js", "test": "node test/index.js",
"browser-test": "nightwatch --env local",
"browser-test-sc": "nightwatch --env remote",
"build": "mkdir -p build; browserify src/index.js -o build/app.js", "build": "mkdir -p build; browserify src/index.js -o build/app.js",
"lint": "semistandard", "lint": "semistandard",
"serve": "http-server ." "serve": "http-server ."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment