aboutsummaryrefslogtreecommitdiffstats
path: root/test/e2e/runner.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2017-01-21 19:46:49 -0800
committerAdam Soltys <[email protected]>2017-01-21 19:46:49 -0800
commitba5200b50692b889f59df9f37c913b3ef85045c8 (patch)
tree755d79cf488d383fe2ffaf123c91be51e879ef35 /test/e2e/runner.js
parentc413e457579b68b7a92ab47cdd867202ee7bb47e (diff)
downloadcoinos-server-ba5200b50692b889f59df9f37c913b3ef85045c8.tar.gz
coinos-server-ba5200b50692b889f59df9f37c913b3ef85045c8.zip
Ditch client code
Diffstat (limited to 'test/e2e/runner.js')
-rw-r--r--test/e2e/runner.js31
1 files changed, 0 insertions, 31 deletions
diff --git a/test/e2e/runner.js b/test/e2e/runner.js
deleted file mode 100644
index 2a5c6ef9..00000000
--- a/test/e2e/runner.js
+++ /dev/null
@@ -1,31 +0,0 @@
-// 1. start the dev server using production config
-process.env.NODE_ENV = 'testing'
-var server = require('../../build/dev-server.js')
-
-// 2. run the nightwatch test suite against it
-// to run in additional browsers:
-// 1. add an entry in test/e2e/nightwatch.conf.json under "test_settings"
-// 2. add it to the --env flag below
-// or override the environment flag, for example: `npm run e2e -- --env chrome,firefox`
-// For more information on Nightwatch's config file, see
-// http://nightwatchjs.org/guide#settings-file
-var opts = process.argv.slice(2)
-if (opts.indexOf('--config') === -1) {
- opts = opts.concat(['--config', 'test/e2e/nightwatch.conf.js'])
-}
-if (opts.indexOf('--env') === -1) {
- opts = opts.concat(['--env', 'chrome'])
-}
-
-var spawn = require('cross-spawn')
-var runner = spawn('./node_modules/.bin/nightwatch', opts, { stdio: 'inherit' })
-
-runner.on('exit', function (code) {
- server.close()
- process.exit(code)
-})
-
-runner.on('error', function (err) {
- server.close()
- throw err
-})