Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Use TZ=UTC in frontend tests #1273

Merged
merged 3 commits into from
Nov 7, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion devtools/docker-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ Format: `docker-compose run --rm frontend <COMMAND>`
Examples
- Add dependency: `docker-compose run --rm frontend npm install <dep> --save`
- Frontend unit tests: `docker-compose run --rm frontend npm run test-unit`
- Watch test suite: `docker-compose run --rm frontend npm run watch-test`
- Watch frontend unit tests: `docker-compose run --rm frontend npm run watch-test-unit`
- Frontend functional tests (w/o visual debugging):
`docker-compose run --rm frontend npm run test-functional`

Expand Down
2 changes: 1 addition & 1 deletion devtools/manual-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ npm run test
```
or to continually watch for changes and run test suite:
```
npm run watch-test
npm run watch-test-unit
```

To lint the code (also run as part of tests):
Expand Down
11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"npm": "3.x.x"
},
"description": "A web dashboard for managing Cloud Foundry apps",
"main": "null",
"scripts": {
"build": "npm run clean && webpack --config webpack.config.js",
"build-prod": "npm run clean && webpack -p --config webpack.config.js",
Expand All @@ -17,15 +16,15 @@
"dev-stop": "cf dev stop && docker-compose stop",
"lint": "eslint --ext .js --ext .jsx ./static_src",
"test": "npm run lint && npm run test-unit && npm run test-functional",
"test-functional": "NODE_ENV=test npm run testing-server-run -- wdio wdio.conf.js",
"test-performance": "NODE_ENV=test JASMINE_CONFIG_PATH=./static_src/test/perf/jasmine.json npm run testing-server-run -- jasmine",
"test-unit": "NODE_ENV=test karma start --single-run",
"test-functional": "npm run testing-server-run -- wdio wdio.conf.js",
"test-performance": "JASMINE_CONFIG_PATH=./static_src/test/perf/jasmine.json npm run testing-server-run -- jasmine",
"test-unit": "TZ=UTC NODE_ENV=test karma start --single-run",
"test-selenium-install": "selenium-standalone install",
"testing-server": "PORT=8001 npm run testing-server-run",
"testing-server-run": "node ./static_src/test/server/server.js",
"testing-server-run": "TZ=UTC NODE_ENV=test node ./static_src/test/server/server.js",
"track-performance": "PORT=8002 npm run testing-server-run -- lighthouse http://localhost:8002/#/ --config-path ./static_src/test/perf/audits.json --output 'json' --output-path '$CIRCLE_ARTIFACTS/perf-$CIRCLE_BUILD_NUM.json' --verbose",
"watch-server": "npm run testing-server & npm run watch",
"watch-test": "NODE_ENV=test karma start --browsers Chrome",
"watch-test-unit": "TZ=UTC NODE_ENV=test karma start --browsers Chrome",
"watch-test-functional": "npm run test-functional -- --watch",
"watch": "webpack --watch"
},
Expand Down