https://github.com/tableflip/sow-integration
:pencil: more integration tests for school of wok
https://github.com/tableflip/sow-integration
Last synced: about 1 year ago
JSON representation
:pencil: more integration tests for school of wok
- Host: GitHub
- URL: https://github.com/tableflip/sow-integration
- Owner: tableflip
- Created: 2015-07-10T15:30:34.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-08-26T14:12:26.000Z (almost 10 years ago)
- Last Synced: 2025-02-15T12:46:44.687Z (over 1 year ago)
- Language: JavaScript
- Size: 36.1 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# School of Wok - Integration tests
Start up schoolofwok.co.uk, sow-backoffice, sow-api in `NODE_ENV=test` and run [nightwatch](http://nightwatchjs.org/) tests against them.
## Getting started
1. Copy `config/default.json` to `config/runtime.json`
2. Obtain the credentials for a SOW backoffice user and add to `config/runtime.json`
3. Run the tests:
```sh
# Run sow api, sow-backoffice, schoolofwok and start the integration tests
npm test
```
N.B. You can start up all the servers without running the tests using `npm start`
### Test specific suite
e.g.
```sh
NIGHTWATCH_TEST=test/nightwatch/book-class-promo.js npm test
```