Skip to content

Commit

Permalink
Refactor testing script into npm run test-setup and npm run test.
Browse files Browse the repository at this point in the history
npm run test-setup downloads necessary files.

npm run test starts the testing process, which starts needed background processes, runs the tests and kills the background processes it created.

Also resolves #13.
  • Loading branch information
Zodiase authored Jun 28, 2016
1 parent afb8e91 commit 438420e
Show file tree
Hide file tree
Showing 12 changed files with 78 additions and 7,657 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
node_modules
errorShots
17 changes: 2 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,6 @@ language: node_js
node_js:
- 4.1
before_script:
- "curl -O http://selenium-release.storage.googleapis.com/2.53/selenium-server-standalone-2.53.0.jar"
- "npm install"
- "npm run build"
- "java -jar selenium-server-standalone-2.53.0.jar -Dphantomjs.binary.path=./node_modules/phantomjs-prebuilt/bin/phantomjs &"
- npm start &
- "bash waiting-for-start.sh"
- "STANDALONE=$(pgrep -n -f java)"
- "NODE=$(pgrep -n -f node)"
- "NPM=$(pgrep -n -f npm)"
- "npm run test-setup"
script:
- wdio ./test/wdio.conf.js
after_script:
- "kill $STANDALONE"
- "kill $NPM"
- "kill $NODE"
- "bash waiting-for-finish.sh"
- "npm test"
Loading

0 comments on commit 438420e

Please sign in to comment.