Skip to content

Commit

Permalink
Merge pull request #40 from stjohnjohnson/patch-nyc
Browse files Browse the repository at this point in the history
[major] Bump NYC to latest version
  • Loading branch information
stjohnjohnson committed Jul 1, 2019
2 parents 35beb42 + 820c99a commit 638a01c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions lib/jenkins.js
Expand Up @@ -73,6 +73,7 @@ module.exports = function (args) {
command.push('--reporter lcov --reporter text-summary');
}

command.push('--cache=false');
command.push('--report-dir ' + escape(directories.coverage) + ' --');
command.push('node', nodeArgs, getBin('_mocha'));
} else {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -28,7 +28,7 @@
"dependencies": {
"mocha": "^6.0.0",
"npm-which": "^3.0.0",
"nyc": "^12.0.0",
"nyc": "^14.0.0",
"shell-escape": "^0.2.0",
"shelljs": "^0.8.3",
"spec-xunit-file": "0.0.1-3"
Expand Down
8 changes: 4 additions & 4 deletions test/jenkins.test.js
Expand Up @@ -79,7 +79,7 @@ describe('Jenkins Mocha Test Case', function () {

// Check exec
A.equalObject(mocks.exec.args[0], [
'node ' + nycPath + ' --reporter lcov --reporter text-summary --report-dir ' +
'node ' + nycPath + ' --reporter lcov --reporter text-summary --cache=false --report-dir ' +
coverage +
' -- node ' + _mochaPath + ' --reporter ' + specXunitPath + ' --colors --foo \'tests/*\''
], 'mocha was called correctly');
Expand All @@ -102,7 +102,7 @@ describe('Jenkins Mocha Test Case', function () {

// Check exec
A.equalObject(mocks.exec.args[0], [
'node ' + nycPath + ' --reporter lcov --reporter text-summary --report-dir ' +
'node ' + nycPath + ' --reporter lcov --reporter text-summary --cache=false --report-dir ' +
coverage +
' -- node ' + _mochaPath + ' --reporter ' + specXunitPath + ' --foo \'tests/*\' --no-colors'
], 'mocha was called correctly');
Expand Down Expand Up @@ -146,7 +146,7 @@ describe('Jenkins Mocha Test Case', function () {

// Check exec
A.equalObject(mocks.exec.args[0], [
'node ' + nycPath + ' --reporter cobertura --report-dir ' +
'node ' + nycPath + ' --reporter cobertura --cache=false --report-dir ' +
coverage +
' -- node ' + _mochaPath + ' --reporter ' + specXunitPath + ' --colors --foo \'tests/*\''
], 'mocha was called correctly');
Expand All @@ -171,7 +171,7 @@ describe('Jenkins Mocha Test Case', function () {

// Check exec
A.equalObject(mocks.exec.args[0], [
'node --flop=blop ' + nycPath + ' --reporter lcov --reporter text-summary --report-dir ' +
'node --flop=blop ' + nycPath + ' --reporter lcov --reporter text-summary --cache=false --report-dir ' +
coverage +
' -- node --flop=blop ' + _mochaPath + ' --reporter ' + specXunitPath + ' --foo \'tests/*\' --no-colors'
], 'mocha was called correctly');
Expand Down

0 comments on commit 638a01c

Please sign in to comment.