extends SurefireIntegrationTestCase
{
public void testAggregateReport()
{
final OutputValidator outputValidator =
unpack( "/aggregate-report" ).addSurefireReportGoal().executeCurrentGoals();
TestFile surefireReportHtml = outputValidator.getSiteFile( "surefire-report.html" );
assertTrue( "surefire report missing: " + surefireReportHtml.getAbsolutePath(), surefireReportHtml.exists() );
// TODO HtmlUnit tests on the surefire report
File[] testDirs = new File[2];
testDirs[0] = new File( outputValidator.getBaseDir(), "child1" );
testDirs[1] = new File( outputValidator.getBaseDir(), "child2" );
IntegrationTestSuiteResults suite = HelperAssertions.parseTestResults( testDirs );
HelperAssertions.assertTestSuiteResults( 2, 0, 1, 0, suite );
}