Skip to content

Commit f4fec2f

Browse files
committed
Add npm-run-all to run all the tests in one command
1 parent 7dacbaf commit f4fec2f

3 files changed

Lines changed: 141 additions & 1 deletion

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ npm run test:coverage
6666
npm run test:functional
6767
```
6868

69+
### Run all the tests
70+
71+
``` bash
72+
npm run test:all
73+
```
74+
6975
## Docker
7076

7177
### Docker Compose

package-lock.json

Lines changed: 132 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
"start": "node src/index",
88
"pretest": "eslint ./src",
99
"test": "./node_modules/.bin/mocha --reporter spec",
10-
"test:functional": "./node_modules/.bin/mocha --reporter spec ./test/functional",
1110
"test:coverage": "./node_modules/.bin/nyc npm test",
11+
"test:functional": "./node_modules/.bin/mocha --reporter spec ./test/functional",
12+
"test:all": "./node_modules/.bin/run-s test:functional test:coverage",
1213
"docker:status": "node src/healthcheck"
1314
},
1415
"repository": {
@@ -62,6 +63,7 @@
6263
"eslint-plugin-react": "^7.11.1",
6364
"espree": "^4.1.0",
6465
"mocha": "^5.2.0",
66+
"npm-run-all": "^4.1.5",
6567
"nyc": "^13.3.0",
6668
"request": "^2.88.0"
6769
},

0 commit comments

Comments
 (0)