Skip to content

Commit

Permalink
build(tests): Updates test:prep and adds test:restore
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-bits committed Feb 9, 2019
1 parent be99a4b commit f86c9c1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,10 @@
"test:debug": "karma start --browsers Chrome --reporters dots",
"test:run": "karma start --single-run",
"test": "npm run test:init && npm run test:run",
"test:prep": "if diff config/settings.json dist/opensphere/config/settings.json; then echo 'WARNING: replacing dist/opensphere/config/settings.json'; cp config/settings.json dist/opensphere/config/settings.json; fi",
"test:cypress": "npm run test:prep && npm run start-server && npx cypress run && npm run stop-server",
"test:cypress-smoke": "npm run test:prep && npm run start-server && npx cypress run --spec cypress/integration/smoke-tests/* && npm run stop-server",
"test:prep": "if ! diff -q config/settings.json dist/opensphere/config/settings.json; then echo 'WARNING: replacing dist/opensphere/config/settings.json'; mv dist/opensphere/config/settings.json dist/opensphere/config/settings.bak && cp config/settings.json dist/opensphere/config/settings.json; fi",
"test:restore": "echo 'INFO: restoring dist/opensphere/config/settings.json'; mv dist/opensphere/config/settings.bak dist/opensphere/config/settings.json",
"test:cypress": "npm run test:prep && npm run start-server && npx cypress run && npm run stop-server && npm run test:restore",
"test:cypress-smoke": "npm run test:prep && npm run start-server && npx cypress run --spec cypress/integration/smoke-tests/* && npm run stop-server && npm run test:restore",
"init:apidoc": "rimraf .build/*.conf.json dist/apidoc && mkdirp .build dist/apidoc",
"init:base": "rimraf .build dist && mkdirp .build dist/opensphere",
"init:debug": "rimraf index.html",
Expand Down

0 comments on commit f86c9c1

Please sign in to comment.