diff --git a/lib/jenkins.js b/lib/jenkins.js index 179b886..a4abbe8 100644 --- a/lib/jenkins.js +++ b/lib/jenkins.js @@ -70,7 +70,7 @@ module.exports = function (args) { args.splice(coberturaIndex, 1); command.push('--reporter cobertura'); } else { - command.push('--reporter lcov'); + command.push('--reporter lcov --reporter text-summary'); } command.push('--report-dir ' + escape(directories.coverage) + ' --'); diff --git a/test/jenkins.test.js b/test/jenkins.test.js index 1bca01b..b0c0ec6 100644 --- a/test/jenkins.test.js +++ b/test/jenkins.test.js @@ -79,7 +79,7 @@ describe('Jenkins Mocha Test Case', function () { // Check exec A.equalObject(mocks.exec.args[0], [ - 'node ' + nycPath + ' --reporter lcov --report-dir ' + + 'node ' + nycPath + ' --reporter lcov --reporter text-summary --report-dir ' + coverage + ' -- node ' + _mochaPath + ' --reporter ' + specXunitPath + ' --colors --foo \'tests/*\'' ], 'mocha was called correctly'); @@ -102,7 +102,7 @@ describe('Jenkins Mocha Test Case', function () { // Check exec A.equalObject(mocks.exec.args[0], [ - 'node ' + nycPath + ' --reporter lcov --report-dir ' + + 'node ' + nycPath + ' --reporter lcov --reporter text-summary --report-dir ' + coverage + ' -- node ' + _mochaPath + ' --reporter ' + specXunitPath + ' --foo \'tests/*\' --no-colors' ], 'mocha was called correctly'); @@ -171,7 +171,7 @@ describe('Jenkins Mocha Test Case', function () { // Check exec A.equalObject(mocks.exec.args[0], [ - 'node --flop=blop ' + nycPath + ' --reporter lcov --report-dir ' + + 'node --flop=blop ' + nycPath + ' --reporter lcov --reporter text-summary --report-dir ' + coverage + ' -- node --flop=blop ' + _mochaPath + ' --reporter ' + specXunitPath + ' --foo \'tests/*\' --no-colors' ], 'mocha was called correctly');