@Mojo(name="integration-test", requiresProject=true, requiresDependencyResolution=TEST, defaultPhase=INTEGRATION_TEST, threadSafe=true) public class IntegrationTestMojo extends AbstractSurefireMojo
AbstractSurefireMojo.DynamicProviderInfo
Modifier and Type | Field and Description |
---|---|
protected int |
rerunFailingTestsCount
(JUnit 4+ providers)
The number of times each failing test will be rerun.
|
protected String |
runOrder
Defines the order the tests will be run in.
|
argLine, artifactFactory, artifactResolver, basedir, childDelegation, classesDirectory, disableXmlReport, enableAssertions, environmentVariables, excludedGroups, excludes, excludesFile, failIfNoTests, FORK_NUMBER_PLACEHOLDER, forkMode, groups, includesFile, junitArtifactName, jvm, localRepository, metadataSource, objectFactory, parallel, parallelMavenExecution, parallelOptimized, perCoreThreadCount, pluginArtifactMap, pluginDescriptor, project, projectArtifactMap, properties, redirectTestOutputToFile, remoteRepositories, reportNameSuffix, session, skip, skipExec, skipTests, systemProperties, systemPropertiesFile, systemPropertyVariables, testClassesDirectory, testNGArtifactName, testSourceDirectory, THREAD_NUMBER_PLACEHOLDER, threadCount, threadCountClasses, threadCountMethods, threadCountSuites, toolchainManager, trimStackTrace, useUnlimitedThreads, workingDirectory
Constructor and Description |
---|
IntegrationTestMojo() |
cleanupForkConfiguration, convertWithCoreCount, createCopyAndReplaceForkNumPlaceholder, createForkStarter, createInprocessStarter, createProviders, effectiveIsEnableAssertions, execute, executeAfterPreconditionsChecked, getAdditionalClasspathElements, getArgLine, getArtifactFactory, getArtifactResolver, getClassLoaderConfiguration, getClasspathDependencyExcludes, getClasspathDependencyScopeExclude, getDependenciesToScan, getEffectiveForkCount, getEnvironmentVariables, getExcludedGroups, getExcludes, getExcludesFile, getFailIfNoTests, getForkConfiguration, getForkCount, getForkMode, getGroups, getIncludesFile, getJunitArtifactName, getJvm, getLocalRepository, getMetadataSource, getObjectFactory, getParallel, getPerCoreThreadCount, getPluginArtifactMap, getPluginDescriptor, getProject, getProjectArtifactMap, getProperties, getRemoteRepositories, getReportNameSuffix, getSession, getStatisticsFileName, getSystemProperties, getSystemPropertiesFile, getSystemPropertyVariables, getTestNGArtifactName, getTestSourceDirectory, getThreadCount, getThreadCountClasses, getThreadCountMethods, getThreadCountSuites, getToolchainManager, getUseUnlimitedThreads, getWorkingDirectory, hasExecutedBefore, isAnyConcurrencySelected, isAnyGroupsSelected, isChildDelegation, isDisableXmlReport, isEnableAssertions, isMavenParallel, isParallelOptimized, isRedirectTestOutputToFile, isReuseForks, isTrimStackTrace, logReportsDirectory, setAdditionalClasspathElements, setArgLine, setArtifactFactory, setArtifactResolver, setChildDelegation, setClasspathDependencyExcludes, setClasspathDependencyScopeExclude, setDependenciesToScan, setDisableXmlReport, setEnableAssertions, setEnvironmentVariables, setExcludedGroups, setExcludes, setFailIfNoTests, setForkMode, setGroups, setJunitArtifactName, setLocalRepository, setMetadataSource, setObjectFactory, setParallel, setParallelOptimized, setPerCoreThreadCount, setPluginArtifactMap, setProject, setProjectArtifactMap, setProperties, setRedirectTestOutputToFile, setRemoteRepositories, setReportNameSuffix, setSession, setSystemProperties, setSystemPropertiesFile, setSystemPropertyVariables, setTestNGArtifactName, setTestSourceDirectory, setThreadCount, setThreadCountClasses, setThreadCountMethods, setThreadCountSuites, setToolchainManager, setTrimStackTrace, setUseUnlimitedThreads, setWorkingDirectory, showToLog
getLog, getPluginContext, setLog, setPluginContext
@Parameter(property="failsafe.rerunFailingTestsCount", defaultValue="0") protected int rerunFailingTestsCount
@Parameter(property="failsafe.runOrder", defaultValue="filesystem") protected String runOrder
protected int getRerunFailingTestsCount()
getRerunFailingTestsCount
in class AbstractSurefireMojo
protected void handleSummary(RunResult summary, Exception firstForkException) throws MojoExecutionException, MojoFailureException
handleSummary
in class AbstractSurefireMojo
MojoExecutionException
MojoFailureException
protected boolean isSkipExecution()
isSkipExecution
in class AbstractSurefireMojo
protected String getPluginName()
getPluginName
in class AbstractSurefireMojo
protected String[] getDefaultIncludes()
getDefaultIncludes
in class AbstractSurefireMojo
public boolean isSkipTests()
public void setSkipTests(boolean skipTests)
public boolean isSkipITs()
public void setSkipITs(boolean skipITs)
@Deprecated public boolean isSkipExec()
@Deprecated public void setSkipExec(boolean skipExec)
public boolean isSkip()
public void setSkip(boolean skip)
public File getBasedir()
public void setBasedir(File basedir)
public File getTestClassesDirectory()
public void setTestClassesDirectory(File testClassesDirectory)
public File getClassesDirectory()
public void setClassesDirectory(File classesDirectory)
public File getReportsDirectory()
public void setReportsDirectory(File reportsDirectory)
public String getTest()
public void setTest(String test)
public String getTestMethod()
public File getSummaryFile()
public void setSummaryFile(File summaryFile)
public boolean isPrintSummary()
public void setPrintSummary(boolean printSummary)
public String getReportFormat()
public void setReportFormat(String reportFormat)
public boolean isUseFile()
public void setUseFile(boolean useFile)
public String getDebugForkedProcess()
public void setDebugForkedProcess(String debugForkedProcess)
public int getForkedProcessTimeoutInSeconds()
public void setForkedProcessTimeoutInSeconds(int forkedProcessTimeoutInSeconds)
public double getParallelTestsTimeoutInSeconds()
public void setParallelTestsTimeoutInSeconds(double parallelTestsTimeoutInSeconds)
public double getParallelTestsTimeoutForcedInSeconds()
public void setParallelTestsTimeoutForcedInSeconds(double parallelTestsTimeoutForcedInSeconds)
public boolean isUseSystemClassLoader()
public void setUseSystemClassLoader(boolean useSystemClassLoader)
public boolean isUseManifestOnlyJar()
public void setUseManifestOnlyJar(boolean useManifestOnlyJar)
public boolean isTestFailureIgnore()
public void setTestFailureIgnore(boolean testFailureIgnore)
protected void addPluginSpecificChecksumItems(ChecksumCalculator checksum)
addPluginSpecificChecksumItems
in class AbstractSurefireMojo
public Boolean getFailIfNoSpecifiedTests()
public void setFailIfNoSpecifiedTests(Boolean failIfNoSpecifiedTests)
public List<String> getIncludes()
getIncludes
in interface SurefireExecutionParameters
getIncludes
in class AbstractSurefireMojo
public void setIncludes(List<String> includes)
setIncludes
in interface SurefireExecutionParameters
setIncludes
in class AbstractSurefireMojo
public File[] getSuiteXmlFiles()
getSuiteXmlFiles
in class AbstractSurefireMojo
public void setSuiteXmlFiles(File[] suiteXmlFiles)
setSuiteXmlFiles
in class AbstractSurefireMojo
public String getRunOrder()
getRunOrder
in class AbstractSurefireMojo
public void setRunOrder(String runOrder)
setRunOrder
in class AbstractSurefireMojo
Copyright © 2004–2014 The Apache Software Foundation. All rights reserved.