Class GenerateCodeTestsMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
PrepareTestsMojo

@Mojo(name="generate-code-tests", defaultPhase=GENERATE_TEST_SOURCES, requiresDependencyResolution=COMPILE_PLUS_RUNTIME, threadSafe=true) public class GenerateCodeTestsMojo extends GenerateCodeMojo
  • Field Details

    • serializeTestModel

      @Parameter(property="quarkus.generate-code.serialize-test-model", defaultValue="true") boolean serializeTestModel
      A switch that enables or disables serialization of an ApplicationModel to a file for tests. Deserializing an application model when bootstrapping Quarkus tests has a performance advantage in that the tests will not have to initialize a Maven resolver and re-resolve the application model, which may save, depending on a project, ~80-95% of time on ApplicationModel resolution.

      Serialization of the test model is enabled by default.

  • Constructor Details

    • GenerateCodeTestsMojo

      public GenerateCodeTestsMojo()
  • Method Details

    • doExecute

      protected void doExecute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Description copied from class: QuarkusBootstrapMojo
      Main mojo execution code
      Overrides:
      doExecute in class GenerateCodeMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException - in case of a failure
      org.apache.maven.plugin.MojoFailureException - in case of a failure
    • isSerializeTestModel

      protected boolean isSerializeTestModel()
      Overrides:
      isSerializeTestModel in class GenerateCodeMojo