Skip to content

Commit

Permalink
stop collecting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
FuadBalashov committed Jun 2, 2017
1 parent 2ad72aa commit 9c29cdc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/junit_reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@
self.suiteDone(fakeFocusedSuite);
}
var output = '';
var testSuitesResults = { disabled: 0, errors: 0, failures: 0, tests: 0, time: 0 };
var testSuitesResults = { disabled: 0, failures: 0, tests: 0, time: 0 };
for (var i = 0; i < suites.length; i++) {
output += self.getOrWriteNestedOutput(suites[i]);
// retrieve nested suite data to include in the testsuites tag
Expand All @@ -315,7 +315,6 @@
self.formatSuiteData = function(suite) {
return {
disabled: suite._disabled || 0,
errors: 0,
failures: suite._failures || 0,
tests: suite._specs.length || 0,
time: (suite._endTime.getTime() - suite._startTime.getTime()) || 0
Expand Down Expand Up @@ -501,7 +500,7 @@
if (self.stylesheetPath) {
prefix += '\n<?xml-stylesheet type="text/xsl" href="' + self.stylesheetPath + '" ?>';
}
prefix += '\n<testsuites disabled="' + results.disabled + '" errors="' + results.errors + '" failures="' + results.failures +
prefix += '\n<testsuites disabled="' + results.disabled + '" errors="0" failures="' + results.failures +
'" tests="' + results.tests + '" time="' + results.time + '">';
return prefix;
}
Expand Down

0 comments on commit 9c29cdc

Please sign in to comment.