Skip to content

Commit

Permalink
Add rule for parsing surefire reports without Test- prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
miklein committed Jan 12, 2015
1 parent 6319538 commit 765a745
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ private File[] getReports(File dir) {
// maybe there's only a test suite result file
unitTestResultFiles = findXMLFilesStartingWith(dir, "TESTS-");
}
if (unitTestResultFiles.length == 0) {
// maybe there's only a test suite result file
unitTestResultFiles = findXMLFilesStartingWith(dir, "");
}
return unitTestResultFiles;
}

Expand All @@ -84,7 +88,7 @@ public boolean accept(File dir, String name) {
}
});
}

private void parseFiles(SensorContext context, File[] reports) {
UnitTestIndex index = new UnitTestIndex();
parseFiles(reports, index);
Expand Down

0 comments on commit 765a745

Please sign in to comment.