@Mojo(name="verify", defaultPhase=VERIFY, threadSafe=true, requiresProject=true, requiresDependencyResolution=TEST) public class VerifyMojo extends IntegrationTestMojo implements org.apache.maven.plugin.surefire.SurefireReportParameters
IntegrationTestMojo
Modifier and Type | Field and Description |
---|---|
protected Boolean |
failIfNoTests
Set this to "true" to cause a failure if there are no tests to run.
|
protected boolean |
skipTests
Set this to
true to skip running tests. |
protected File[] |
summaryFiles
Additional summary files to read integration test results from.
|
protected boolean |
testFailureIgnore
Set this to true to ignore a failure during testing.
|
reportingEncoding, skipITs, summaryFile
antProfileManager, artifactHandlerManager, buildFile, buildFiles, encoding, expand, exportAntProperties, exportedAntProperties, failOnError, graph, localRepository, project, projectHelper, propertyPrefix, remoteRepositories, repositorySystemSession, session, settings, system, target, targets
Constructor and Description |
---|
VerifyMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
File |
getBasedir() |
String |
getEncoding() |
Boolean |
getFailIfNoTests() |
File |
getReportsDirectory() |
File |
getTestClassesDirectory() |
boolean |
isSkip()
Deprecated.
Since 2.0.3. Use
isSkipITs() or isSkipTests() |
boolean |
isSkipExec()
Deprecated.
Since 2.0.3. Use
isSkipITs() or isSkipTests() |
boolean |
isSkipITs() |
boolean |
isSkipTests() |
boolean |
isTestFailureIgnore() |
void |
setBasedir(File basedir) |
void |
setFailIfNoTests(boolean failIfNoTests) |
void |
setReportsDirectory(File reportsDirectory) |
void |
setSkip(boolean skip)
Deprecated.
Since 2.0.3. Use
setSkipITs(boolean) or setSkipTests(boolean) |
void |
setSkipExec(boolean skipExec)
Deprecated.
Since 2.0.3. Use
setSkipITs(boolean) or setSkipTests(boolean) |
void |
setSkipITs(boolean skipITs) |
void |
setSkipTests(boolean skipTests) |
void |
setTestClassesDirectory(File testClassesDirectory) |
void |
setTestFailureIgnore(boolean testFailureIgnore) |
writeSummary
expandGraph, getActiveProfiles, getAntProfileManager, getArtifactHandlerManager, getBuildFiles, getGraph, getInjectedProfileIds, getInstance, getLocalRepository, getProject, getProjectHelper, getRemoteRepositories, getSession, getSystem, newGraph, newGraph, setAntPropertiesFromMaven, setAntReferencesFromMaven, setMavenPropertiesFromAnt
@Parameter protected File[] summaryFiles
@Parameter(property="skipTests") protected boolean skipTests
true
to skip running tests.@Parameter(property="maven.test.failure.ignore", defaultValue="false") protected boolean testFailureIgnore
@Parameter(property="failIfNoTests") protected Boolean failIfNoTests
public String getEncoding()
getEncoding
in class IntegrationTestMojo
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
execute
in interface org.apache.maven.plugin.Mojo
execute
in class IntegrationTestMojo
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
public boolean isSkipITs()
public void setSkipITs(boolean skipITs)
public boolean isSkipTests()
isSkipTests
in interface org.apache.maven.plugin.surefire.SurefireReportParameters
public void setSkipTests(boolean skipTests)
setSkipTests
in interface org.apache.maven.plugin.surefire.SurefireReportParameters
@Deprecated public boolean isSkipExec()
isSkipExec
in interface org.apache.maven.plugin.surefire.SurefireReportParameters
@Deprecated public void setSkipExec(boolean skipExec)
setSkipExec
in interface org.apache.maven.plugin.surefire.SurefireReportParameters
@Deprecated public boolean isSkip()
isSkip
in interface org.apache.maven.plugin.surefire.SurefireReportParameters
@Deprecated public void setSkip(boolean skip)
setSkip
in interface org.apache.maven.plugin.surefire.SurefireReportParameters
public boolean isTestFailureIgnore()
isTestFailureIgnore
in interface org.apache.maven.plugin.surefire.SurefireReportParameters
public void setTestFailureIgnore(boolean testFailureIgnore)
setTestFailureIgnore
in interface org.apache.maven.plugin.surefire.SurefireReportParameters
public File getBasedir()
getBasedir
in interface org.apache.maven.plugin.surefire.SurefireReportParameters
public void setBasedir(File basedir)
setBasedir
in interface org.apache.maven.plugin.surefire.SurefireReportParameters
public File getTestClassesDirectory()
getTestClassesDirectory
in interface org.apache.maven.plugin.surefire.SurefireReportParameters
public void setTestClassesDirectory(File testClassesDirectory)
setTestClassesDirectory
in interface org.apache.maven.plugin.surefire.SurefireReportParameters
public File getReportsDirectory()
getReportsDirectory
in interface org.apache.maven.plugin.surefire.SurefireReportParameters
public void setReportsDirectory(File reportsDirectory)
setReportsDirectory
in interface org.apache.maven.plugin.surefire.SurefireReportParameters
public Boolean getFailIfNoTests()
getFailIfNoTests
in interface org.apache.maven.plugin.surefire.SurefireReportParameters
public void setFailIfNoTests(boolean failIfNoTests)
setFailIfNoTests
in interface org.apache.maven.plugin.surefire.SurefireReportParameters
Copyright © 2016 Nuxeo SA. All Rights Reserved.