Class VerifyMojo

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

    @Mojo(name="verify",
          defaultPhase=VERIFY,
          requiresProject=true,
          threadSafe=true)
    public class VerifyMojo
    extends org.apache.maven.plugin.AbstractMojo
    implements SurefireReportParameters
    Verify integration tests ran using Surefire.
    • Field Detail

      • skipTests

        @Parameter(property="skipTests")
        private boolean skipTests
        Set this to 'true' to skip running tests, but still compile them. Its use is NOT RECOMMENDED, but quite convenient on occasion.
        Since:
        2.4
      • skipITs

        @Parameter(property="skipITs")
        private boolean skipITs
        Set this to 'true' to skip running integration tests, but still compile them. Its use is NOT RECOMMENDED, but quite convenient on occasion.
        Since:
        2.4.3-alpha-2
      • skipExec

        @Deprecated
        @Parameter(property="maven.test.skip.exec")
        private boolean skipExec
        Deprecated.
        Use -DskipTests instead.
        This old parameter is just like skipTests, but bound to the old property maven.test.skip.exec.
        Since:
        2.3
      • skip

        @Parameter(property="maven.test.skip",
                   defaultValue="false")
        private boolean skip
        Set this to 'true' to bypass unit tests entirely. Its use is NOT RECOMMENDED, especially if you enable it using the "maven.test.skip" property, because maven.test.skip disables both running the tests and compiling the tests. Consider using the skipTests parameter instead.
      • testFailureIgnore

        @Parameter(property="maven.test.failure.ignore",
                   defaultValue="false")
        private boolean testFailureIgnore
        Set this to true to ignore a failure during testing. Its use is NOT RECOMMENDED, but quite convenient on occasion.
      • basedir

        @Parameter(defaultValue="${basedir}")
        private java.io.File basedir
        The base directory of the project being tested. This can be obtained in your unit test by System.getProperty("basedir").
      • testClassesDirectory

        @Parameter(defaultValue="${project.build.testOutputDirectory}")
        private java.io.File testClassesDirectory
        The directory containing generated test classes of the project being tested. This will be included at the beginning the test classpath.
      • reportsDirectory

        @Parameter(defaultValue="${project.build.directory}/failsafe-reports")
        private java.io.File reportsDirectory
        Base directory where all reports are written to.
      • summaryFile

        @Parameter(defaultValue="${project.build.directory}/failsafe-reports/failsafe-summary.xml",
                   required=true)
        private java.io.File summaryFile
        The summary file to read integration test results from.
      • summaryFiles

        @Parameter
        private java.io.File[] summaryFiles
        Additional summary files to read integration test results from.
        Since:
        2.6
      • failIfNoTests

        @Parameter(property="failIfNoTests")
        private java.lang.Boolean failIfNoTests
        Set this to "true" to cause a failure if there are no tests to run.
        Since:
        2.4
      • encoding

        @Parameter(property="encoding",
                   defaultValue="${project.reporting.outputEncoding}")
        private java.lang.String encoding
        Deprecated.
        since of 2.20.1
        The character encoding scheme to be applied. Deprecated since 2.20.1 and used encoding UTF-8 in failsafe-summary.xml.
      • session

        @Parameter(defaultValue="${session}",
                   readonly=true)
        private org.apache.maven.execution.MavenSession session
        The current build session instance.
      • logger

        @Component
        private org.codehaus.plexus.logging.Logger logger
    • Constructor Detail

      • VerifyMojo

        public VerifyMojo()