@Mojo(name="test", defaultPhase=TEST, threadSafe=true, requiresDependencyResolution=TEST) public class SurefirePlugin extends AbstractSurefireMojo implements SurefireReportParameters
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 |
---|
SurefirePlugin() |
addPluginSpecificChecksumItems, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFailIfNoTests, setFailIfNoTests
@Parameter(property="surefire.rerunFailingTestsCount", defaultValue="0") protected int rerunFailingTestsCount
@Parameter(property="surefire.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()
isSkipTests
in interface SurefireExecutionParameters
isSkipTests
in interface SurefireReportParameters
public void setSkipTests(boolean skipTests)
setSkipTests
in interface SurefireExecutionParameters
setSkipTests
in interface SurefireReportParameters
public boolean isSkipExec()
isSkipExec
in interface SurefireExecutionParameters
isSkipExec
in interface SurefireReportParameters
public void setSkipExec(boolean skipExec)
setSkipExec
in interface SurefireExecutionParameters
setSkipExec
in interface SurefireReportParameters
public boolean isSkip()
isSkip
in interface SurefireExecutionParameters
isSkip
in interface SurefireReportParameters
public void setSkip(boolean skip)
setSkip
in interface SurefireExecutionParameters
setSkip
in interface SurefireReportParameters
public boolean isTestFailureIgnore()
isTestFailureIgnore
in interface SurefireReportParameters
public void setTestFailureIgnore(boolean testFailureIgnore)
setTestFailureIgnore
in interface SurefireReportParameters
public File getBasedir()
getBasedir
in interface SurefireExecutionParameters
getBasedir
in interface SurefireReportParameters
public void setBasedir(File basedir)
setBasedir
in interface SurefireExecutionParameters
setBasedir
in interface SurefireReportParameters
public File getTestClassesDirectory()
getTestClassesDirectory
in interface SurefireExecutionParameters
getTestClassesDirectory
in interface SurefireReportParameters
public void setTestClassesDirectory(File testClassesDirectory)
setTestClassesDirectory
in interface SurefireExecutionParameters
setTestClassesDirectory
in interface SurefireReportParameters
public File getClassesDirectory()
getClassesDirectory
in interface SurefireExecutionParameters
public void setClassesDirectory(File classesDirectory)
setClassesDirectory
in interface SurefireExecutionParameters
public File getReportsDirectory()
getReportsDirectory
in interface SurefireExecutionParameters
getReportsDirectory
in interface SurefireReportParameters
public void setReportsDirectory(File reportsDirectory)
setReportsDirectory
in interface SurefireExecutionParameters
setReportsDirectory
in interface SurefireReportParameters
public String getTest()
getTest
in interface SurefireExecutionParameters
public String getTestMethod()
getTestMethod
in interface SurefireExecutionParameters
public boolean isUseSystemClassLoader()
isUseSystemClassLoader
in interface SurefireExecutionParameters
public void setUseSystemClassLoader(boolean useSystemClassLoader)
setUseSystemClassLoader
in interface SurefireExecutionParameters
public boolean isUseManifestOnlyJar()
isUseManifestOnlyJar
in interface SurefireExecutionParameters
public void setUseManifestOnlyJar(boolean useManifestOnlyJar)
setUseManifestOnlyJar
in interface SurefireExecutionParameters
public Boolean getFailIfNoSpecifiedTests()
getFailIfNoSpecifiedTests
in interface SurefireExecutionParameters
public void setFailIfNoSpecifiedTests(Boolean failIfNoSpecifiedTests)
setFailIfNoSpecifiedTests
in interface SurefireExecutionParameters
public boolean isPrintSummary()
isPrintSummary
in interface SurefireExecutionParameters
public void setPrintSummary(boolean printSummary)
setPrintSummary
in interface SurefireExecutionParameters
public String getReportFormat()
getReportFormat
in interface SurefireExecutionParameters
public void setReportFormat(String reportFormat)
setReportFormat
in interface SurefireExecutionParameters
public boolean isUseFile()
isUseFile
in interface SurefireExecutionParameters
public void setUseFile(boolean useFile)
setUseFile
in interface SurefireExecutionParameters
public String getDebugForkedProcess()
getDebugForkedProcess
in interface SurefireExecutionParameters
public void setDebugForkedProcess(String debugForkedProcess)
setDebugForkedProcess
in interface SurefireExecutionParameters
public int getForkedProcessTimeoutInSeconds()
getForkedProcessTimeoutInSeconds
in interface SurefireExecutionParameters
public void setForkedProcessTimeoutInSeconds(int forkedProcessTimeoutInSeconds)
setForkedProcessTimeoutInSeconds
in interface SurefireExecutionParameters
public double getParallelTestsTimeoutInSeconds()
getParallelTestsTimeoutInSeconds
in interface SurefireExecutionParameters
public void setParallelTestsTimeoutInSeconds(double parallelTestsTimeoutInSeconds)
setParallelTestsTimeoutInSeconds
in interface SurefireExecutionParameters
public double getParallelTestsTimeoutForcedInSeconds()
getParallelTestsTimeoutForcedInSeconds
in interface SurefireExecutionParameters
public void setParallelTestsTimeoutForcedInSeconds(double parallelTestsTimeoutForcedInSeconds)
setParallelTestsTimeoutForcedInSeconds
in interface SurefireExecutionParameters
public void setTest(String test)
setTest
in interface SurefireExecutionParameters
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.