@Mojo(name="test", defaultPhase=TEST, threadSafe=true, requiresDependencyResolution=TEST) public class SurefirePlugin extends AbstractSurefireMojo implements SurefireReportParameters
AbstractSurefireMojo.DynamicProviderInfo
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, perCoreThreadCount, pluginArtifactMap, pluginDescriptor, project, projectArtifactMap, properties, redirectTestOutputToFile, remoteRepositories, reportNameSuffix, runOrder, session, skip, skipExec, skipTests, suiteXmlFiles, 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, getRunOrder, getSession, getStatisticsFileName, getSuiteXmlFiles, getSystemProperties, getSystemPropertiesFile, getSystemPropertyVariables, getTestNGArtifactName, getTestSourceDirectory, getThreadCount, getThreadCountClasses, getThreadCountMethods, getThreadCountSuites, getToolchainManager, getUseUnlimitedThreads, getWorkingDirectory, hasExecutedBefore, isAnyConcurrencySelected, isAnyGroupsSelected, isChildDelegation, isDisableXmlReport, isEnableAssertions, isMavenParallel, 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, setPerCoreThreadCount, setPluginArtifactMap, setProject, setProjectArtifactMap, setProperties, setRedirectTestOutputToFile, setRemoteRepositories, setReportNameSuffix, setRunOrder, setSession, setSuiteXmlFiles, 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
protected void handleSummary(RunResult summary, NestedCheckedException 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 int getParallelTestsTimeoutInSeconds()
getParallelTestsTimeoutInSeconds
in interface SurefireExecutionParameters
public void setParallelTestsTimeoutInSeconds(int parallelTestsTimeoutInSeconds)
setParallelTestsTimeoutInSeconds
in interface SurefireExecutionParameters
public int getParallelTestsTimeoutForcedInSeconds()
getParallelTestsTimeoutForcedInSeconds
in interface SurefireExecutionParameters
public void setParallelTestsTimeoutForcedInSeconds(int 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
Copyright © 2004–2013 The Apache Software Foundation. All rights reserved.