Package net.thucydides.core.reports
Class ReportService
java.lang.Object
net.thucydides.core.reports.ReportService
public class ReportService
extends java.lang.Object
Generates different Thucydides reports in a given output directory.
-
Constructor Summary
Constructors Constructor Description ReportService(java.io.File outputDirectory, java.util.Collection<AcceptanceTestReporter> subscribedReporters)ReportService(java.io.File outputDirectory, java.util.Collection<AcceptanceTestReporter> subscribedReporters, java.util.Collection<AcceptanceTestFullReporter> subscribedFullReporters, EnvironmentVariables environmentVariables)Reports are generated using the test results in a given directory.ReportService(java.io.File outputDirectory, java.util.Collection<AcceptanceTestReporter> subscribedReporters, EnvironmentVariables environmentVariables)ReportService(Configuration configuration) -
Method Summary
Modifier and Type Method Description voidgenerateConfigurationsReport()Store some configuration properties under output directoryvoidgenerateReportsFor(java.util.List<TestOutcome> testOutcomeResults)A test runner can generate reports via Reporter instances that subscribe to the test runner.static java.util.List<AcceptanceTestFullReporter>getDefaultFullReporters()The default reporters applicable for standard test runs.static java.util.List<AcceptanceTestReporter>getDefaultReporters()The default reporters applicable for standard test runs.java.util.List<AcceptanceTestFullReporter>getSubscribedFullReporters()java.util.List<AcceptanceTestReporter>getSubscribedReporters()voidsetOutputDirectory(java.io.File outputDirectory)voidsubscribe(AcceptanceTestReporter reporter)voiduseQualifier(java.lang.String qualifier)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ReportService
-
ReportService
public ReportService(java.io.File outputDirectory, java.util.Collection<AcceptanceTestReporter> subscribedReporters) -
ReportService
public ReportService(java.io.File outputDirectory, java.util.Collection<AcceptanceTestReporter> subscribedReporters, EnvironmentVariables environmentVariables) -
ReportService
public ReportService(java.io.File outputDirectory, java.util.Collection<AcceptanceTestReporter> subscribedReporters, java.util.Collection<AcceptanceTestFullReporter> subscribedFullReporters, EnvironmentVariables environmentVariables)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.- Parameters:
outputDirectory- Where the test data is stored, and where the generated reports will go.subscribedReporters- A set of reporters that generate the actual reports.
-
-
Method Details
-
setOutputDirectory
public void setOutputDirectory(java.io.File outputDirectory) -
getSubscribedReporters
-
getSubscribedFullReporters
-
subscribe
-
useQualifier
public void useQualifier(java.lang.String qualifier) -
generateReportsFor
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.- Parameters:
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.
-
generateConfigurationsReport
public void generateConfigurationsReport()Store some configuration properties under output directory -
getDefaultReporters
The default reporters applicable for standard test runs. -
getDefaultFullReporters
The default reporters applicable for standard test runs.
-