Skip to content

Commit

Permalink
fix: include a text summary in the default report
Browse files Browse the repository at this point in the history
  • Loading branch information
ajcrews committed Jan 31, 2017
1 parent b963219 commit 1900f1c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/jenkins.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) + ' --');
Expand Down
6 changes: 3 additions & 3 deletions test/jenkins.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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');
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit 1900f1c

Please sign in to comment.