/** * Reports are generated using the test results in a given directory. * The actual reports are generated using a set of reporter objects. The report service passes test outcomes * to the reporter objects, which generate different types of reports. * * @param outputDirectory Where the test data is stored, and where the generated reports will go. * @param subscribedReporters A set of reporters that generate the actual reports. */ public ReportService(final File outputDirectory, final Collection<AcceptanceTestReporter> subscribedReporters) { this.outputDirectory = outputDirectory; getSubscribedReporters().addAll(subscribedReporters); }
public void subscribe(final AcceptanceTestReporter reporter) { getSubscribedReporters().add(reporter); }
public void subscribe(final AcceptanceTestReporter reporter) { getSubscribedReporters().add(reporter); }
public void subscribe(final AcceptanceTestReporter reporter) { getSubscribedReporters().add(reporter); }
public void useQualifier(final String qualifier) { for (AcceptanceTestReporter reporter : getSubscribedReporters()) { reporter.setQualifier(qualifier); } }
public void useQualifier(final String qualifier) { for (AcceptanceTestReporter reporter : getSubscribedReporters()) { reporter.setQualifier(qualifier); } }
public void useQualifier(final String qualifier) { for (AcceptanceTestReporter reporter : getSubscribedReporters()) { reporter.setQualifier(qualifier); } }
/** * Reports are generated using the test results in a given directory. * The actual reports are generated using a set of reporter objects. The report service passes test outcomes * to the reporter objects, which generate different types of reports. * * @param outputDirectory Where the test data is stored, and where the generated reports will go. * @param subscribedReporters A set of reporters that generate the actual reports. */ public ReportService(final File outputDirectory, final Collection<AcceptanceTestReporter> subscribedReporters) { this.outputDirectory = outputDirectory; getSubscribedReporters().addAll(subscribedReporters); jUnitXMLOutcomeReporter = new JUnitXMLOutcomeReporter(outputDirectory); }
/** * Reports are generated using the test results in a given directory. * The actual reports are generated using a set of reporter objects. The report service passes test outcomes * to the reporter objects, which generate different types of reports. * * @param outputDirectory Where the test data is stored, and where the generated reports will go. * @param subscribedReporters A set of reporters that generate the actual reports. */ public ReportService(final File outputDirectory, final Collection<AcceptanceTestReporter> subscribedReporters, final Collection<AcceptanceTestFullReporter> subscribedFullReporters, final EnvironmentVariables environmentVariables) { this.outputDirectory = outputDirectory; if (!this.outputDirectory.exists()) { this.outputDirectory.mkdirs(); } getSubscribedReporters().addAll(subscribedReporters); getSubscribedFullReporters().addAll(subscribedFullReporters); jUnitXMLOutcomeReporter = new JUnitXMLOutcomeReporter(outputDirectory); this.maximumPoolSize = ThucydidesSystemProperty.REPORT_MAX_THREADS.integerFrom(environmentVariables, Runtime.getRuntime().availableProcessors()); }
/** * A test runner can generate reports via Reporter instances that subscribe * to the test runner. The test runner tells the reporter what directory to * place the reports in. Then, at the end of the test, the test runner * notifies these reporters of the test outcomes. The reporter's job is to * process each test run outcome and do whatever is appropriate. * * @param testOutcomeResults A list of test outcomes to use in report generation. * These may be stored in memory (e.g. by a Listener instance) or read from the XML * test results. */ public void generateReportsFor(final List<TestOutcome> testOutcomeResults) { final TestOutcomes allTestOutcomes = TestOutcomes.of(testOutcomeResults); for (final AcceptanceTestReporter reporter : getSubscribedReporters()) { generateReportsFor(reporter, allTestOutcomes); } }
/** * A test runner can generate reports via Reporter instances that subscribe * to the test runner. The test runner tells the reporter what directory to * place the reports in. Then, at the end of the test, the test runner * notifies these reporters of the test outcomes. The reporter's job is to * process each test run outcome and do whatever is appropriate. * * @param testOutcomeResults A list of test outcomes to use in report generation. * These may be stored in memory (e.g. by a Listener instance) or read from the XML * test results. */ public void generateReportsFor(final List<TestOutcome> testOutcomeResults) { final TestOutcomes allTestOutcomes = TestOutcomes.of(testOutcomeResults); for (final AcceptanceTestReporter reporter : getSubscribedReporters()) { generateReportsFor(reporter, allTestOutcomes); } }
/** * A test runner can generate reports via Reporter instances that subscribe * to the test runner. The test runner tells the reporter what directory to * place the reports in. Then, at the end of the test, the test runner * notifies these reporters of the test outcomes. The reporter's job is to * process each test run outcome and do whatever is appropriate. * * @param testOutcomeResults A list of test outcomes to use in report generation. * These may be stored in memory (e.g. by a Listener instance) or read from the XML * test results. */ public void generateReportsFor(final List<TestOutcome> testOutcomeResults) { final TestOutcomes allTestOutcomes = TestOutcomes.of(testOutcomeResults); for (final AcceptanceTestReporter reporter : getSubscribedReporters()) { generateReportsFor(reporter, allTestOutcomes); } for (final AcceptanceTestFullReporter reporter : getSubscribedFullReporters()) { generateFullReportFor(allTestOutcomes, reporter); } }