Package net.thucydides.core.reports.json
Class JSONTestOutcomeReporter
java.lang.Object
net.thucydides.core.reports.json.JSONTestOutcomeReporter
- All Implemented Interfaces:
AcceptanceTestLoader
,AcceptanceTestReporter
public class JSONTestOutcomeReporter extends java.lang.Object implements AcceptanceTestReporter, AcceptanceTestLoader
-
Constructor Summary
Constructors Constructor Description JSONTestOutcomeReporter()
-
Method Summary
Modifier and Type Method Description java.io.File
generateReportFor(TestOutcome testOutcome)
Generate reports for a given acceptance test run.java.util.Optional<OutcomeFormat>
getFormat()
Return the format that this reporter generates, if it is a format that can be activated or deactivated via the output.formats configuration property.java.lang.String
getName()
A name used to identify a given reporter.java.io.File
getOutputDirectory()
java.util.Optional<TestOutcome>
loadReportFrom(java.io.File reportFile)
java.util.Optional<TestOutcome>
loadReportFrom(java.nio.file.Path reportFile)
java.util.List<TestOutcome>
loadReportsFrom(java.io.File outputDirectory)
java.util.List<TestOutcome>
loadReportsFrom(java.nio.file.Path outputDirectory)
void
setOutputDirectory(java.io.File outputDirectory)
Define the output directory in which the reports will be written.void
setQualifier(java.lang.String qualifier)
Optional.void
setResourceDirectory(java.lang.String resourceDirectoryPath)
Define or override the directory where report resources are stored.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
JSONTestOutcomeReporter
public JSONTestOutcomeReporter()
-
-
Method Details
-
getName
public java.lang.String getName()Description copied from interface:AcceptanceTestReporter
A name used to identify a given reporter.- Specified by:
getName
in interfaceAcceptanceTestReporter
-
generateReportFor
Description copied from interface:AcceptanceTestReporter
Generate reports for a given acceptance test run.- Specified by:
generateReportFor
in interfaceAcceptanceTestReporter
- Throws:
java.io.IOException
-
getOutputDirectory
public java.io.File getOutputDirectory() -
setOutputDirectory
public void setOutputDirectory(java.io.File outputDirectory)Description copied from interface:AcceptanceTestReporter
Define the output directory in which the reports will be written.- Specified by:
setOutputDirectory
in interfaceAcceptanceTestReporter
-
setQualifier
public void setQualifier(java.lang.String qualifier)Description copied from interface:AcceptanceTestReporter
Optional. Used to distinguish the report generated from other similar reports.- Specified by:
setQualifier
in interfaceAcceptanceTestReporter
-
setResourceDirectory
public void setResourceDirectory(java.lang.String resourceDirectoryPath)Description copied from interface:AcceptanceTestReporter
Define or override the directory where report resources are stored. This can be on the file system or on the classpath- Specified by:
setResourceDirectory
in interfaceAcceptanceTestReporter
-
loadReportFrom
- Specified by:
loadReportFrom
in interfaceAcceptanceTestLoader
-
loadReportFrom
- Specified by:
loadReportFrom
in interfaceAcceptanceTestLoader
-
loadReportsFrom
- Specified by:
loadReportsFrom
in interfaceAcceptanceTestLoader
-
loadReportsFrom
- Specified by:
loadReportsFrom
in interfaceAcceptanceTestLoader
-
getFormat
Description copied from interface:AcceptanceTestReporter
Return 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:
getFormat
in interfaceAcceptanceTestLoader
- Specified by:
getFormat
in interfaceAcceptanceTestReporter
-