private void generateReportFor(final TestOutcome testOutcome, final TestOutcomes allTestOutcomes, final AcceptanceTestReporter reporter) { try { LOGGER.info(reporter + ": Generating report for test outcome: " + testOutcome.getCompleteName()); reporter.setOutputDirectory(outputDirectory); reporter.generateReportFor(testOutcome, allTestOutcomes); } catch (IOException e) { throw new ReportGenerationFailedError( "Failed to generate reports using " + reporter, e); } }
private void generateReportsFor(List<TestOutcome> outcomes) throws IOException { TestOutcomes allOutcomes = TestOutcomes.of(outcomes); for (TestOutcome outcome : allOutcomes.getOutcomes()) { if (shouldGenerate(OutcomeFormat.XML)) { getXMLReporter().generateReportFor(outcome, allOutcomes); } if (shouldGenerate(OutcomeFormat.JSON)) { getJsonReporter().generateReportFor(outcome, allOutcomes); } getHTMLReporter().generateReportFor(outcome, allOutcomes); } }
private void generateReportFor(final TestOutcome testOutcome, final TestOutcomes allTestOutcomes, final AcceptanceTestReporter reporter) { try { LOGGER.info(reporter + ": Generating report for test outcome: " + testOutcome.getCompleteName()); reporter.setOutputDirectory(outputDirectory); reporter.generateReportFor(testOutcome, allTestOutcomes); } catch (IOException e) { throw new ReportGenerationFailedError( "Failed to generate reports using " + reporter, e); } }
private void generateReportsFor(List<TestOutcome> outcomes) throws IOException { TestOutcomes allOutcomes = TestOutcomes.of(outcomes); for (TestOutcome outcome : allOutcomes.getOutcomes()) { if (shouldGenerate(OutcomeFormat.XML)) { getXMLReporter().generateReportFor(outcome, allOutcomes); } if (shouldGenerate(OutcomeFormat.JSON)) { getJsonReporter().generateReportFor(outcome, allOutcomes); } getHTMLReporter().generateReportFor(outcome, allOutcomes); } }
private void generateReportFor(final TestOutcome testOutcome, final AcceptanceTestReporter reporter) { try { LOGGER.debug(reporter + ": Generating report for test outcome: " + testOutcome.getCompleteName()); reporter.setOutputDirectory(outputDirectory); reporter.generateReportFor(testOutcome); } catch (Exception e) { throw new ReportGenerationFailedError( "Failed to generate reports using " + reporter, e); } }