Package org.apache.maven.plugin.failsafe
Class VerifyMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.failsafe.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.
- Author:
- Stephen Connolly, Jason van Zyl
-
Field Summary
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
protected String[]
boolean
int
protected String
org.apache.maven.execution.MavenSession
boolean
isSkip()
boolean
Deprecated.boolean
boolean
boolean
void
setBasedir
(File basedir) void
setFailIfNoTests
(boolean failIfNoTests) void
setFailOnFlakeCount
(int failOnFlakeCount) void
setReportsDirectory
(File reportsDirectory) void
setSession
(org.apache.maven.execution.MavenSession session) void
setSkip
(boolean skip) void
setSkipExec
(boolean skipExec) Deprecated.void
setSkipITs
(boolean skipITs) void
setSkipTests
(boolean skipTests) void
setSummaryFile
(File summaryFile) void
setTestClassesDirectory
(File testClassesDirectory) void
setTestFailureIgnore
(boolean testFailureIgnore) protected boolean
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
VerifyMojo
public VerifyMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Specified by:
execute
in interfaceorg.apache.maven.plugin.Mojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
verifyParameters
protected boolean verifyParameters() throws org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoFailureException
-
getPluginName
-
getDefaultIncludes
-
isSkipTests
public boolean isSkipTests()- Specified by:
isSkipTests
in interfaceSurefireReportParameters
-
setSkipTests
public void setSkipTests(boolean skipTests) - Specified by:
setSkipTests
in interfaceSurefireReportParameters
-
isSkipITs
public boolean isSkipITs() -
setSkipITs
public void setSkipITs(boolean skipITs) -
isSkipExec
Deprecated.- Specified by:
isSkipExec
in interfaceSurefireReportParameters
-
setSkipExec
Deprecated.- Specified by:
setSkipExec
in interfaceSurefireReportParameters
-
isSkip
public boolean isSkip()- Specified by:
isSkip
in interfaceSurefireReportParameters
-
setSkip
public void setSkip(boolean skip) - Specified by:
setSkip
in interfaceSurefireReportParameters
-
isTestFailureIgnore
public boolean isTestFailureIgnore()- Specified by:
isTestFailureIgnore
in interfaceSurefireReportParameters
-
setTestFailureIgnore
public void setTestFailureIgnore(boolean testFailureIgnore) - Specified by:
setTestFailureIgnore
in interfaceSurefireReportParameters
-
getBasedir
- Specified by:
getBasedir
in interfaceSurefireReportParameters
-
setBasedir
- Specified by:
setBasedir
in interfaceSurefireReportParameters
-
getTestClassesDirectory
- Specified by:
getTestClassesDirectory
in interfaceSurefireReportParameters
-
setTestClassesDirectory
- Specified by:
setTestClassesDirectory
in interfaceSurefireReportParameters
-
getReportsDirectory
- Specified by:
getReportsDirectory
in interfaceSurefireReportParameters
-
setReportsDirectory
- Specified by:
setReportsDirectory
in interfaceSurefireReportParameters
-
getSummaryFile
-
setSummaryFile
-
getFailIfNoTests
public boolean getFailIfNoTests()- Specified by:
getFailIfNoTests
in interfaceSurefireReportParameters
-
setFailIfNoTests
public void setFailIfNoTests(boolean failIfNoTests) - Specified by:
setFailIfNoTests
in interfaceSurefireReportParameters
-
getFailOnFlakeCount
public int getFailOnFlakeCount()- Specified by:
getFailOnFlakeCount
in interfaceSurefireReportParameters
-
setFailOnFlakeCount
public void setFailOnFlakeCount(int failOnFlakeCount) - Specified by:
setFailOnFlakeCount
in interfaceSurefireReportParameters
-
getSession
public org.apache.maven.execution.MavenSession getSession() -
setSession
public void setSession(org.apache.maven.execution.MavenSession session)
-