{
File reportsDir = new File( testDir, "target/surefire-reports" );
Assert.assertTrue( "Reports directory is missing: " + reportsDir.getAbsolutePath(), reportsDir.exists() );
reportsDirs.add( reportsDir );
}
SurefireReportParser parser = new SurefireReportParser( reportsDirs, Locale.getDefault() );
List<ReportTestSuite> reports;
try
{
reports = parser.parseXMLReportFiles();
}
catch ( Exception e )
{
throw new RuntimeException( "Couldn't parse XML reports", e );
}