Class QaJGivenPerMethodReporterMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="permethod-report",
          defaultPhase=VERIFY)
    public class QaJGivenPerMethodReporterMojo
    extends AbstractQaJgivenReporterMojo
    Generates JGiven report in QA format per method with associated attributes. Scans all JGiven report .json files for specified referenceTag. Only reports having such tag are processed. For every scenario method, all its tags are written in an associated "attributes" file. The association is done by file name. These "attributes" can later be used as additional publishing information.
    • Field Detail

      • templateResource

        @Parameter(defaultValue="/qa-jgiven-permethod-reporter.html")
        protected String templateResource
      • referenceTag

        @Parameter(defaultValue="Reference")
        protected String referenceTag
        JGiven Reference> tag. Not linked in this module in order to allow faster builds (otherwise the build of this module would depend on qa-jgiven-commons module).
    • Constructor Detail

      • QaJGivenPerMethodReporterMojo

        public QaJGivenPerMethodReporterMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException