Skip to content

Commit 9ca1d5f

Browse files
committed
refactor(test): add a npm run test in develpment mode -> run test-dev
1 parent e54f352 commit 9ca1d5f

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

CODING.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,14 @@ Or you can download it manually, and then:
4848
* then use the env var `CHROME` to tell itowns/mocha/puppeteer what Chrome app
4949
it should use: `CHROME=/opt/google/chrome-beta/chrome npm run test-examples`
5050

51-
Then tests can be ran with four differents methods:
52-
* `npm run test`: build and ran all tests in iTowns
53-
* `npm run test-unit`: ran unit tests only
54-
* `npm run test-functional`: ran functional testing with examples only, use
51+
Then tests can be run with five differents methods:
52+
* `npm run test`: build and run all tests in iTowns (the one used by github action)
53+
* `npm run test-dev`: build in development mode and run all tests in iTowns (to get more messages)
54+
* `npm run test-unit`: run unit tests only
55+
* `npm run test-functional`: run functional testing with examples only, use
5556
`npx mocha -t 30000 test/functional/bootstrap.js
5657
test/functional/<test_case>.js` to run a single example
57-
* `npm run test-with-coverage`: build and ran all tests in iTowns and generate a
58+
* `npm run test-with-coverage`: build and run all tests in iTowns and generate a
5859
report on the coverage of the tests
5960

6061

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"doc": "jsdoc --readme docs/HOMEPAGE.md -c docs/config.json",
1313
"doclint": "npm run doc -- -t templates/silent",
1414
"test": "npm run lint -- --max-warnings=0 && npm run build && npm run test-with-coverage && npm run test-functional",
15+
"test-dev": "npm run lint -- --max-warnings=0 && npm run build-dev && npm run test-with-coverage && npm run test-functional",
1516
"test-unit": "npm run base-test-unit test/unit",
1617
"test-functional": "mocha -t 60000 --require test/hooks_functional.js --recursive test/functional",
1718
"test-with-coverage": "nyc -n src -r html cross-env npm run test-unit",

0 commit comments

Comments
 (0)