Package org.citrusframework.mvn.plugin
Class GenerateDocsMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.citrusframework.mvn.plugin.AbstractCitrusMojo
org.citrusframework.mvn.plugin.GenerateDocsMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="generate-docs",
defaultPhase=PROCESS_TEST_RESOURCES)
public class GenerateDocsMojo
extends AbstractCitrusMojo
Generates test overview documentation based on plugin configuration. Html documentation creates a web page that
contains a list of all available tests with meta information. Excel documentation creates a table of all available tests with
meta information such as name, author, status and so on.
- Since:
- 2.7.4
- Author:
- Christoph Deppisch
-
Field Summary
FieldsFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.GenerateDocsMojo(ExcelTestDocsGenerator excelTestDocGenerator, HtmlTestDocsGenerator htmlTestDocGenerator) Constructor using final fields. -
Method Summary
Modifier and TypeMethodDescriptionvoidSubclass execution logic.Gets the excelTestDocGenerator.Gets the htmlTestDocGenerator.Methods inherited from class org.citrusframework.mvn.plugin.AbstractCitrusMojo
execute, getDocs, getFramework, getTests, getTestSrcDirectory, getType, setDocs, setTests, setTypeMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
skipGenerateDocs
@Parameter(property="citrus.skip.generate.docs", defaultValue="false") protected boolean skipGenerateDocs
-
-
Constructor Details
-
GenerateDocsMojo
public GenerateDocsMojo()Default constructor. -
GenerateDocsMojo
public GenerateDocsMojo(ExcelTestDocsGenerator excelTestDocGenerator, HtmlTestDocsGenerator htmlTestDocGenerator) Constructor using final fields.- Parameters:
excelTestDocGenerator-htmlTestDocGenerator-
-
-
Method Details
-
doExecute
public void doExecute() throws org.apache.maven.plugin.MojoExecutionExceptionDescription copied from class:AbstractCitrusMojoSubclass execution logic.- Specified by:
doExecutein classAbstractCitrusMojo- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getHtmlTestDocGenerator
Gets the htmlTestDocGenerator.- Returns:
-
getExcelTestDocGenerator
Gets the excelTestDocGenerator.- Returns:
-