public void testSkipOptionalSurefireReportGeneration()
{
OutputValidator validator = unpack().activateProfile( "optionalSurefire" ).activateProfile(
"skipSurefire" ).addFailsafeReportOnlyGoal().addSurefireReportOnlyGoal().executeCurrentGoals();
TestFile siteFile = validator.getSiteFile( "surefire-report.html" );
System.out.println( "siteFile.getAbsolutePath() = " + siteFile.getAbsolutePath() );
assertFalse( "Expecting no surefire report file", siteFile.isFile() );
siteFile = validator.getSiteFile( "failsafe-report.html" );
System.out.println( "siteFile.getAbsolutePath() = " + siteFile.getAbsolutePath() );
assertTrue( "Expecting failsafe report file", siteFile.isFile() );
}