File tree 3 files changed +7
-3
lines changed
3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
node_modules /
2
2
.tmp /
3
+ coverage /
3
4
artifacts /
4
5
npm-debug.log
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ before_script:
18
18
- ' curl -Lo travis_after_all.py https://git.io/vLSON'
19
19
script :
20
20
- npm run test
21
+ - npm run check-coverage
21
22
after_success :
22
23
- python travis_after_all.py
23
24
- export $(cat .to_export_back)
Original file line number Diff line number Diff line change 5
5
"main" : " src/index.js" ,
6
6
"scripts" : {
7
7
"start" : " npm run test:watch" ,
8
- "test" : " mocha test/tests/index.js --compilers js:babel/register" ,
8
+ "test" : " istanbul cover -x ./test _mocha -- -R spec test/tests/index.js --compilers js:babel/register" ,
9
9
"test:watch" : " nodemon -q --exec \" $(npm bin)/mocha test/tests/index.js --watch --compilers js:babel/register\" --" ,
10
10
"semantic-release" : " semantic-release pre && npm publish && semantic-release post" ,
11
- "commit" : " git-cz"
11
+ "commit" : " git-cz" ,
12
+ "check-coverage" : " istanbul check-coverage --statements 80 --branches 80 --functions 80 --lines 80 "
12
13
},
13
14
"czConfig" : {
14
15
"path" : " ./node_modules/cz-conventional-changelog"
15
16
},
16
17
"config" : {
17
18
"ghooks" : {
18
- "pre-commit" : " npm run test"
19
+ "pre-commit" : " npm run test && npm run check-coverage "
19
20
}
20
21
},
21
22
"homepage" : " https://github.com/commitizen/cz-cli" ,
42
43
"devDependencies" : {
43
44
"chai" : " 3.3.0" ,
44
45
"ghooks" : " 0.3.2" ,
46
+ "istanbul" : " 0.3.22" ,
45
47
"lodash" : " 3.10.1" ,
46
48
"mocha" : " 2.3.3" ,
47
49
"semantic-release" : " ^4.3.5"
You can’t perform that action at this time.
0 commit comments