Package com.tngtech.jgiven.report
Class AbstractReportGenerator
java.lang.Object
com.tngtech.jgiven.report.AbstractReportGenerator
- Direct Known Subclasses:
AsciiDocReportGenerator
,PlainTextReportGenerator
This abstract class is the basic layout that includes the minimal functionality for reading/writing a report
The following flags are predefined in
AbstractReportConfig.createConfigOptions()
:
- --format=
- --sourceDir= /--dir=
- --targetDir= /--todir=
- --title=
- --exclude-empty-scenarios=<boolean>
- --help / -h
AsciiDocReportGenerator
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract AbstractReportConfig
createReportConfig
(String... args) abstract void
generate()
This implements the main functionality of the report generator, utilizing the information from the specializedAbstractReportConfig
protected void
generateFromCommandLine
(String... args) void
void
void
setConfig
(AbstractReportConfig config)
-
Field Details
-
completeReportModel
-
config
-
-
Constructor Details
-
AbstractReportGenerator
public AbstractReportGenerator()
-
-
Method Details
-
setConfig
-
generateFromCommandLine
-
generateWithConfig
-
loadReportModel
public void loadReportModel() -
createReportConfig
- Parameters:
args
- these are the command line arguments- Returns:
- an
AbstractReportConfig
where any option may be accessible via setter and getter
-
generate
This implements the main functionality of the report generator, utilizing the information from the specializedAbstractReportConfig
- Throws:
Exception
-