File tree 2 files changed +7
-5
lines changed
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -48,13 +48,14 @@ Or you can download it manually, and then:
48
48
* then use the env var ` CHROME ` to tell itowns/mocha/puppeteer what Chrome app
49
49
it should use: ` CHROME=/opt/google/chrome-beta/chrome npm run test-examples `
50
50
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
55
56
`npx mocha -t 30000 test/functional/bootstrap.js
56
57
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
58
59
report on the coverage of the tests
59
60
60
61
Original file line number Diff line number Diff line change 12
12
"doc" : " jsdoc --readme docs/HOMEPAGE.md -c docs/config.json" ,
13
13
"doclint" : " npm run doc -- -t templates/silent" ,
14
14
"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" ,
15
16
"test-unit" : " npm run base-test-unit test/unit" ,
16
17
"test-functional" : " mocha -t 60000 --require test/hooks_functional.js --recursive test/functional" ,
17
18
"test-with-coverage" : " nyc -n src -r html cross-env npm run test-unit" ,
You can’t perform that action at this time.
0 commit comments