assertThat(report.exists(), is(true));
}
@Test
public void screenshots_should_have_a_separate_html_report() throws Exception {
TestOutcome testOutcome = TestOutcome.forTest("should_do_this", SomeTestScenario.class);
TestStep step1 = TestStepFactory.successfulTestStepCalled("step 1");
File screenshot = temporaryDirectory.newFile("google_page_1.png");
File screenshotSource = temporaryDirectory.newFile("google_page_1.html");
step1.addScreenshot(new ScreenshotAndHtmlSource(screenshot,screenshotSource));
testOutcome.recordStep(step1);
reporter.generateReportFor(testOutcome, allTestOutcomes);
File screenshotReport = new File(outputDirectory, Digest.ofTextValue("net.thucydides.core.reports.integration.AbstractReportGenerationTest/a_user_story_should_do_this") + "_screenshots.html");
assertThat(screenshotReport.exists(), is(true));