public class ReportService extends Object
| Constructor and Description |
|---|
ReportService(Configuration configuration) |
ReportService(File outputDirectory,
Collection<AcceptanceTestReporter> subscribedReporters)
Reports are generated using the test results in a given directory.
|
| Modifier and Type | Method and Description |
|---|---|
void |
generateReportsFor(List<TestOutcome> testOutcomeResults)
A test runner can generate reports via Reporter instances that subscribe
to the test runner.
|
static List<AcceptanceTestReporter> |
getDefaultReporters()
The default reporters applicable for standard test runs.
|
List<AcceptanceTestReporter> |
getSubscribedReporters() |
void |
setOutputDirectory(File outputDirectory) |
void |
subscribe(AcceptanceTestReporter reporter) |
void |
useQualifier(String qualifier) |
@Inject public ReportService(Configuration configuration)
public ReportService(File outputDirectory, Collection<AcceptanceTestReporter> subscribedReporters)
outputDirectory - Where the test data is stored, and where the generated reports will go.subscribedReporters - A set of reporters that generate the actual reports.public void setOutputDirectory(File outputDirectory)
public List<AcceptanceTestReporter> getSubscribedReporters()
public void subscribe(AcceptanceTestReporter reporter)
public void useQualifier(String qualifier)
public void generateReportsFor(List<TestOutcome> testOutcomeResults)
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 static List<AcceptanceTestReporter> getDefaultReporters()
Copyright © 2011-2013 Wakaleo Consulting. All Rights Reserved.