Skip to content

Commit d17f16f

Browse files
authored
Correct error message in VSTS mocha reporter (#2070)
1 parent a2544d1 commit d17f16f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.mocha-reporter/mocha-vsts-reporter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function MochaVstsReporter(runner, options) {
3737
// ##vso[task.setprogress]current operation
3838
}
3939
});
40-
40+
4141
runner.on('pass', function(test){
4242
passes++;
4343
console.log('%s✓ %s (%dms)', indenter, test.title, test.duration);
@@ -52,7 +52,7 @@ function MochaVstsReporter(runner, options) {
5252
runner.on('fail', function(test, err){
5353
failures++;
5454
console.log('%s✖ %s -- error: %s', indenter, test.title, err.message);
55-
console.log('##vso[task.logissue type=warning;sourcepath=%s;]SKIPPED TEST %s :: %s', test.file, test.parent.title, test.title);
55+
console.log('##vso[task.logissue type=error;sourcepath=%s;]FAILED %s :: %s', test.file, test.parent.title, test.title);
5656
});
5757

5858
runner.on('end', function(){

0 commit comments

Comments
 (0)