Class JSONTestOutcomeReporter
java.lang.Object
net.thucydides.model.reports.json.JSONTestOutcomeReporter
- All Implemented Interfaces:
AcceptanceTestLoader,AcceptanceTestReporter
public class JSONTestOutcomeReporter
extends Object
implements AcceptanceTestReporter, AcceptanceTestLoader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateReportFor(TestOutcome testOutcome) Generate reports for a given acceptance test run.Return the format that this reporter generates, if it is a format that can be activated or deactivated via the output.formats configuration property.getName()A name used to identify a given reporter.loadReportFrom(File reportFile) loadReportFrom(Path reportFile) loadReportsFrom(File outputDirectory) loadReportsFrom(Path outputDirectory) voidsetOutputDirectory(File outputDirectory) Define the output directory in which the reports will be written.voidsetQualifier(String qualifier) Optional.voidsetResourceDirectory(String resourceDirectoryPath) Define or override the directory where report resources are stored.
-
Constructor Details
-
JSONTestOutcomeReporter
public JSONTestOutcomeReporter()
-
-
Method Details
-
getName
Description copied from interface:AcceptanceTestReporterA name used to identify a given reporter.- Specified by:
getNamein interfaceAcceptanceTestReporter
-
generateReportFor
Description copied from interface:AcceptanceTestReporterGenerate reports for a given acceptance test run.- Specified by:
generateReportForin interfaceAcceptanceTestReporter- Throws:
IOException
-
getOutputDirectory
-
setOutputDirectory
Description copied from interface:AcceptanceTestReporterDefine the output directory in which the reports will be written.- Specified by:
setOutputDirectoryin interfaceAcceptanceTestReporter
-
setQualifier
Description copied from interface:AcceptanceTestReporterOptional. Used to distinguish the report generated from other similar reports.- Specified by:
setQualifierin interfaceAcceptanceTestReporter
-
setResourceDirectory
Description copied from interface:AcceptanceTestReporterDefine or override the directory where report resources are stored. This can be on the file system or on the classpath- Specified by:
setResourceDirectoryin interfaceAcceptanceTestReporter
-
loadReportFrom
- Specified by:
loadReportFromin interfaceAcceptanceTestLoader
-
loadReportFrom
- Specified by:
loadReportFromin interfaceAcceptanceTestLoader
-
loadReportsFrom
- Specified by:
loadReportsFromin interfaceAcceptanceTestLoader
-
loadReportsFrom
- Specified by:
loadReportsFromin interfaceAcceptanceTestLoader
-
getFormat
Description copied from interface:AcceptanceTestReporterReturn the format that this reporter generates, if it is a format that can be activated or deactivated via the output.formats configuration property.- Specified by:
getFormatin interfaceAcceptanceTestLoader- Specified by:
getFormatin interfaceAcceptanceTestReporter
-