Skip to content

Commit

Permalink
Correct error message in VSTS mocha reporter (#2070)
Browse files Browse the repository at this point in the history
  • Loading branch information
d3r3kk committed Jun 28, 2018
1 parent a2544d1 commit d17f16f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .mocha-reporter/mocha-vsts-reporter.js
Expand Up @@ -37,7 +37,7 @@ function MochaVstsReporter(runner, options) {
// ##vso[task.setprogress]current operation
}
});

runner.on('pass', function(test){
passes++;
console.log('%s✓ %s (%dms)', indenter, test.title, test.duration);
Expand All @@ -52,7 +52,7 @@ function MochaVstsReporter(runner, options) {
runner.on('fail', function(test, err){
failures++;
console.log('%s✖ %s -- error: %s', indenter, test.title, err.message);
console.log('##vso[task.logissue type=warning;sourcepath=%s;]SKIPPED TEST %s :: %s', test.file, test.parent.title, test.title);
console.log('##vso[task.logissue type=error;sourcepath=%s;]FAILED %s :: %s', test.file, test.parent.title, test.title);
});

runner.on('end', function(){
Expand Down

0 comments on commit d17f16f

Please sign in to comment.