From b9459f28ac8aebeb43052bc51d07666a1744d4f4 Mon Sep 17 00:00:00 2001 From: Dave Hoover Date: Sat, 18 Jun 2016 15:44:49 -0500 Subject: [PATCH] Polishing the cli for browser testing --- README.md | 4 ++-- package.json | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2c615b5fa1..d0768e233b 100644 --- a/README.md +++ b/README.md @@ -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: 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. * Run: `sc -u -k ` (see .travis.yml for values) - * Run: `./node_modules/nightwatch/bin/nightwatch --env remote` + * Run: `npm run browser-test-sc` ## Usage as a Chrome Extension diff --git a/package.json b/package.json index efe1cff05a..ae8a5d99ac 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,8 @@ "description": "Minimalistic browser-based Solidity IDE", "scripts": { "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", "lint": "semistandard", "serve": "http-server ."