@Mojo(name="test", defaultPhase=TEST, threadSafe=true, requiresDependencyResolution=TEST) public class SurefirePlugin extends AbstractSurefireMojo implements SurefireReportParameters
basedir, skip, skipExec, skipTests, testClassesDirectory
Constructor and Description |
---|
SurefirePlugin() |
cleanupForkConfiguration, convertWithCoreCount, createCopyAndReplaceForkNumPlaceholder, createProviders, effectiveIsEnableAssertions, execute, getAdditionalClasspathElements, getArgLine, getClassLoaderConfiguration, getClasspathDependencyExcludes, getClasspathDependencyScopeExclude, getConsoleLogger, getDependenciesToScan, getEffectiveForkCount, getEnvironmentVariables, getExcludedGroups, getFailIfNoTests, getForkCount, getGroups, getJdkToolchain, getJunitArtifactName, getJvm, getLocalRepositoryPath, getMojoArtifact, getObjectFactory, getParallel, getPerCoreThreadCount, getPluginArtifactMap, getPluginDescriptor, getProject, getProjectArtifactMap, getProjectBuildDirectory, getReportNameSuffix, getSession, getSpecificTests, getSystemProperties, getSystemPropertyVariables, getTempDir, getTestNGArtifactName, getTestSourceDirectory, getThreadCount, getThreadCountClasses, getThreadCountMethods, getThreadCountSuites, getToolchainManager, getUseUnlimitedThreads, getWorkingDirectory, hasExecutedBefore, isAnyConcurrencySelected, isAnyGroupsSelected, isChildDelegation, isDisableXmlReport, isEnableAssertions, isForking, isMavenParallel, isParallelOptimized, isRedirectTestOutputToFile, isReuseForks, isTrimStackTrace, logDebugOrCliShowErrors, logReportsDirectory, resolveDependencies, setAdditionalClasspathElements, setArgLine, setChildDelegation, setClasspathDependencyExcludes, setClasspathDependencyScopeExclude, setDependenciesToScan, setDisableXmlReport, setEnableAssertions, setEnvironmentVariables, setExcludedGroups, setFailIfNoTests, setGroups, setJdkToolchain, setJunitArtifactName, setObjectFactory, setParallel, setParallelOptimized, setPerCoreThreadCount, setPluginArtifactMap, setProject, setProjectArtifactMap, setProjectBuildDirectory, setProperties, setRedirectTestOutputToFile, setReportNameSuffix, setSession, setSystemProperties, setSystemPropertyVariables, setTempDir, setTestNGArtifactName, setTestSourceDirectory, setThreadCount, setThreadCountClasses, setThreadCountMethods, setThreadCountSuites, setToolchainManager, setTrimStackTrace, setUseUnlimitedThreads, setWorkingDirectory
getLog, getPluginContext, setLog, setPluginContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFailIfNoTests, setFailIfNoTests
protected int getRerunFailingTestsCount()
getRerunFailingTestsCount
in class AbstractSurefireMojo
public int getFailOnFlakeCount()
getFailOnFlakeCount
in interface SurefireReportParameters
public void setFailOnFlakeCount(int failOnFlakeCount)
setFailOnFlakeCount
in interface SurefireReportParameters
protected void handleSummary(RunResult summary, Exception firstForkException) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
handleSummary
in class AbstractSurefireMojo
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected boolean isSkipExecution()
isSkipExecution
in class AbstractSurefireMojo
protected String getPluginName()
getPluginName
in class AbstractSurefireMojo
protected String[] getDefaultIncludes()
getDefaultIncludes
in class AbstractSurefireMojo
protected String getReportSchemaLocation()
getReportSchemaLocation
in class AbstractSurefireMojo
public File getSystemPropertiesFile()
getSystemPropertiesFile
in class AbstractSurefireMojo
public void setSystemPropertiesFile(File systemPropertiesFile)
setSystemPropertiesFile
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
@Deprecated public boolean isSkipExec()
isSkipExec
in interface SurefireExecutionParameters
isSkipExec
in interface SurefireReportParameters
@Deprecated 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 getMainBuildPath()
getMainBuildPath
in interface SurefireExecutionParameters
public void setMainBuildPath(File mainBuildPath)
setMainBuildPath
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 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 String getEncoding()
getEncoding
in interface SurefireExecutionParameters
public void setEncoding(String encoding)
setEncoding
in interface SurefireExecutionParameters
public boolean getFailIfNoSpecifiedTests()
getFailIfNoSpecifiedTests
in interface SurefireExecutionParameters
public void setFailIfNoSpecifiedTests(boolean failIfNoSpecifiedTests)
setFailIfNoSpecifiedTests
in interface SurefireExecutionParameters
public int getSkipAfterFailureCount()
getSkipAfterFailureCount
in interface SurefireExecutionParameters
public String getShutdown()
getShutdown
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 int getForkedProcessExitTimeoutInSeconds()
getForkedProcessExitTimeoutInSeconds
in interface SurefireExecutionParameters
public void setForkedProcessExitTimeoutInSeconds(int forkedProcessExitTimeoutInSeconds)
setForkedProcessExitTimeoutInSeconds
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 List<String> getExcludes()
getExcludes
in interface SurefireExecutionParameters
public void setExcludes(List<String> excludes)
setExcludes
in interface SurefireExecutionParameters
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
public Long getRunOrderRandomSeed()
getRunOrderRandomSeed
in class AbstractSurefireMojo
public void setRunOrderRandomSeed(Long runOrderRandomSeed)
setRunOrderRandomSeed
in class AbstractSurefireMojo
public File getIncludesFile()
getIncludesFile
in class AbstractSurefireMojo
public File getExcludesFile()
getExcludesFile
in class AbstractSurefireMojo
protected boolean useModulePath()
useModulePath
in class AbstractSurefireMojo
protected void setUseModulePath(boolean useModulePath)
setUseModulePath
in class AbstractSurefireMojo
protected final List<File> suiteXmlFiles()
suiteXmlFiles
in class AbstractSurefireMojo
protected final boolean hasSuiteXmlFiles()
hasSuiteXmlFiles
in class AbstractSurefireMojo
protected final String[] getExcludedEnvironmentVariables()
getExcludedEnvironmentVariables
in class AbstractSurefireMojo
protected final String getEnableProcessChecker()
getEnableProcessChecker
in class AbstractSurefireMojo
protected final ForkNodeFactory getForkNode()
getForkNode
in class AbstractSurefireMojo
protected void warnIfIllegalFailOnFlakeCount() throws org.apache.maven.plugin.MojoFailureException
warnIfIllegalFailOnFlakeCount
in class AbstractSurefireMojo
org.apache.maven.plugin.MojoFailureException
protected void addPluginSpecificChecksumItems(ChecksumCalculator checksum)
addPluginSpecificChecksumItems
in class AbstractSurefireMojo
public String[] getIncludeJUnit5Engines()
getIncludeJUnit5Engines
in interface SurefireExecutionParameters
public void setIncludeJUnit5Engines(String[] includeJUnit5Engines)
setIncludeJUnit5Engines
in interface SurefireExecutionParameters
public String[] getExcludeJUnit5Engines()
getExcludeJUnit5Engines
in interface SurefireExecutionParameters
public void setExcludeJUnit5Engines(String[] excludeJUnit5Engines)
setExcludeJUnit5Engines
in interface SurefireExecutionParameters
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.