Skip to content

Commit

Permalink
Merge pull request #27 from ajcrews/default-reporters
Browse files Browse the repository at this point in the history
Include a text summary in the default report
  • Loading branch information
stjohnjohnson authored Jan 31, 2017
2 parents b963219 + 1900f1c commit d5b2e98
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 d5b2e98

Please sign in to comment.