Skip to content

Commit 1336eb7

Browse files
committed
added errors count zero to testsuites to make report compatible with jenkins xunit plugin
1 parent 16c771d commit 1336eb7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Reports/Junit.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public function generateFileReport($report, File $phpcsFile, $showSources=false,
3939

4040
$out->startElement('testsuite');
4141
$out->writeAttribute('name', $report['filename']);
42+
$out->writeAttribute('errors', 0);
4243

4344
if (count($report['messages']) === 0) {
4445
$out->writeAttribute('tests', 1);

0 commit comments

Comments
 (0)