File tree 4 files changed +25
-12
lines changed
4 files changed +25
-12
lines changed Original file line number Diff line number Diff line change @@ -31,39 +31,39 @@ jobs:
31
31
include :
32
32
- name : Node.js 0.10
33
33
node-version : " 0.10"
34
- npm-i : minimatch@3.0.4 mocha@3.5.3 supertest@2.0.0
34
+ npm-i : minimatch@3.0.4 mocha@3.5.3 nyc@10.3.2 supertest@2.0.0
35
35
36
36
- name : Node.js 0.12
37
37
node-version : " 0.12"
38
- npm-i : minimatch@3.0.4 mocha@3.5.3 supertest@2.0.0
38
+ npm-i : minimatch@3.0.4 mocha@3.5.3 nyc@10.3.2 supertest@2.0.0
39
39
40
40
- name : io.js 1.x
41
41
node-version : " 1.8"
42
- npm-i : minimatch@3.0.4 mocha@3.5.3 supertest@2.0.0
42
+ npm-i : minimatch@3.0.4 mocha@3.5.3 nyc@10.3.2 supertest@2.0.0
43
43
44
44
- name : io.js 2.x
45
45
node-version : " 2.5"
46
- npm-i : minimatch@3.0.4 mocha@3.5.3 supertest@2.0.0
46
+ npm-i : minimatch@3.0.4 mocha@3.5.3 nyc@10.3.2 supertest@2.0.0
47
47
48
48
- name : io.js 3.x
49
49
node-version : " 3.3"
50
- npm-i : minimatch@3.0.4 mocha@3.5.3 supertest@2.0.0
50
+ npm-i : minimatch@3.0.4 mocha@3.5.3 nyc@10.3.2 supertest@2.0.0
51
51
52
52
- name : Node.js 4.x
53
53
node-version : " 4.9"
54
- npm-i : mocha@5.2.0 supertest@3.4.2
54
+ npm-i : mocha@5.2.0 nyc@11.9.0 supertest@3.4.2
55
55
56
56
- name : Node.js 5.x
57
57
node-version : " 5.12"
58
- npm-i : mocha@5.2.0 supertest@3.4.2
58
+ npm-i : mocha@5.2.0 nyc@11.9.0 supertest@3.4.2
59
59
60
60
- name : Node.js 6.x
61
61
node-version : " 6.17"
62
- npm-i : mocha@6.2.2 supertest@6.1.6
62
+ npm-i : mocha@6.2.2 nyc@14.1.1 supertest@6.1.6
63
63
64
64
- name : Node.js 7.x
65
65
node-version : " 7.10"
66
- npm-i : mocha@6.2.2 supertest@6.1.6
66
+ npm-i : mocha@6.2.2 nyc@14.1.1 supertest@6.1.6
67
67
68
68
- name : Node.js 8.x
69
69
node-version : " 8.17"
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ package-lock.json
5
5
* .gz
6
6
7
7
# Coveralls
8
+ .nyc_output
8
9
coverage
9
10
10
11
# Benchmarking
Original file line number Diff line number Diff line change @@ -59,6 +59,18 @@ install:
59
59
} elseif ([int]$env:nodejs_version.split(".")[0] -lt 12) {
60
60
npm install --silent --save-dev mocha@8.4.0
61
61
}
62
+ - ps : |
63
+ # nyc for test coverage
64
+ # - use 10.3.2 for Node.js < 4
65
+ # - use 11.9.0 for Node.js < 6
66
+ # - use 14.1.1 for Node.js < 8
67
+ if ([int]$env:nodejs_version.split(".")[0] -lt 4) {
68
+ npm install --silent --save-dev nyc@10.3.2
69
+ } elseif ([int]$env:nodejs_version.split(".")[0] -lt 6) {
70
+ npm install --silent --save-dev nyc@11.9.0
71
+ } elseif ([int]$env:nodejs_version.split(".")[0] -lt 8) {
72
+ npm install --silent --save-dev nyc@14.1.1
73
+ }
62
74
- ps : |
63
75
# supertest for http calls
64
76
# - use 2.0.0 for Node.js < 4
Original file line number Diff line number Diff line change 68
68
"eslint" : " 7.32.0" ,
69
69
"express-session" : " 1.17.2" ,
70
70
"hbs" : " 4.2.0" ,
71
- "istanbul" : " 0.4.5" ,
72
71
"marked" : " 0.7.0" ,
73
72
"method-override" : " 3.0.0" ,
74
73
"mocha" : " 9.2.0" ,
75
74
"morgan" : " 1.10.0" ,
76
75
"multiparty" : " 4.2.2" ,
76
+ "nyc" : " 15.1.0" ,
77
77
"pbkdf2-password" : " 1.2.1" ,
78
78
"should" : " 13.2.3" ,
79
79
"supertest" : " 6.2.2" ,
92
92
"scripts" : {
93
93
"lint" : " eslint ." ,
94
94
"test" : " mocha --require test/support/env --reporter spec --bail --check-leaks test/ test/acceptance/" ,
95
- "test-ci" : " istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --require test/support/env -- reporter spec --check-leaks test/ test/acceptance/ " ,
96
- "test-cov" : " istanbul cover node_modules/mocha/bin/_mocha -- --require test/support/env -- reporter dot --check-leaks test/ test/acceptance/ " ,
95
+ "test-ci" : " nyc --reporter= lcovonly --reporter=text npm test" ,
96
+ "test-cov" : " nyc --reporter=html --reporter=text npm test" ,
97
97
"test-tap" : " mocha --require test/support/env --reporter tap --check-leaks test/ test/acceptance/"
98
98
}
99
99
}
You can’t perform that action at this time.
0 commit comments