Package org.apache.maven.plugin.surefire
Class SurefirePlugin
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.maven.plugin.surefire.AbstractSurefireMojo
-
- org.apache.maven.plugin.surefire.SurefirePlugin
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo,org.apache.maven.plugin.surefire.SurefireExecutionParameters,org.apache.maven.plugin.surefire.SurefireReportParameters
@Mojo(name="test", defaultPhase=TEST, threadSafe=true, requiresDependencyResolution=TEST) public class SurefirePlugin extends org.apache.maven.plugin.surefire.AbstractSurefireMojo implements org.apache.maven.plugin.surefire.SurefireReportParametersRun tests using Surefire.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.maven.plugin.surefire.AbstractSurefireMojo
org.apache.maven.plugin.surefire.AbstractSurefireMojo.DynamicProviderInfo, org.apache.maven.plugin.surefire.AbstractSurefireMojo.JUnit3ProviderInfo, org.apache.maven.plugin.surefire.AbstractSurefireMojo.JUnit4ProviderInfo, org.apache.maven.plugin.surefire.AbstractSurefireMojo.JUnitCoreProviderInfo, org.apache.maven.plugin.surefire.AbstractSurefireMojo.JUnitPlatformProviderInfo, org.apache.maven.plugin.surefire.AbstractSurefireMojo.ProviderList, org.apache.maven.plugin.surefire.AbstractSurefireMojo.TestNgProviderInfo
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.FileclassesDirectoryThe directory containing generated classes of the project being tested.private java.lang.StringdebugForkedProcessAttach a debugger to the forked JVM.private java.lang.StringencodingThe character encoding scheme to be applied while generating test report files (see target/surefire-reports/yourTestName.txt).private java.io.FileexcludesFileA file containing exclude patterns.private java.lang.BooleanfailIfNoSpecifiedTestsSet this to "true" to cause a failure if none of the tests specified in -Dtest=...private intforkedProcessExitTimeoutInSecondsForked process is normally terminated without any significant delay after given tests have completed.private intforkedProcessTimeoutInSecondsKill the forked test process after a certain number of seconds.private java.util.List<java.lang.String>includesprivate java.io.FileincludesFileA file containing include patterns.private doubleparallelTestsTimeoutForcedInSecondsStop executing queued parallel JUnit tests andinterruptcurrently running tests after a certain number of seconds.private doubleparallelTestsTimeoutInSecondsStop executing queued parallel JUnit tests after a certain number of seconds.private booleanprintSummaryOption to print summary of test suites or just print the test cases that have errors.private java.lang.StringreportFormatSelects the formatting for the test report to be generated.private java.io.FilereportsDirectoryBase directory where all reports are written to.private intrerunFailingTestsCount(JUnit 4+ providers) The number of times each failing test will be rerun.private java.lang.StringrunOrderDefines the order the tests will be run in.private java.lang.StringshutdownAfter the plugin process is shutdown by sending SIGTERM signal (CTRL+C), SHUTDOWN command is received by every forked JVM.private intskipAfterFailureCountSet to error/failure count in order to skip remaining tests.private java.io.File[]suiteXmlFiles(TestNG) List of <suiteXmlFile> elements specifying TestNG suite xml file locations.private java.lang.Stringtestprivate booleantestFailureIgnoreSet this to "true" to ignore a failure during testing.private booleanuseFileOption to generate a file test report or just output the test report to the console.private booleanuseManifestOnlyJarBy default, Surefire forks your tests using a manifest-only JAR; set this parameter to "false" to force it to launch your tests with a plain old Java classpath.private booleanuseSystemClassLoaderOption to pass dependencies to the system's classloader instead of using an isolated class loader when forking.
-
Constructor Summary
Constructors Constructor Description SurefirePlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.FilegetBasedir()java.io.FilegetClassesDirectory()java.lang.StringgetDebugForkedProcess()protected java.lang.String[]getDefaultIncludes()java.lang.StringgetEncoding()java.io.FilegetExcludesFile()java.lang.BooleangetFailIfNoSpecifiedTests()intgetForkedProcessExitTimeoutInSeconds()intgetForkedProcessTimeoutInSeconds()java.util.List<java.lang.String>getIncludes()java.io.FilegetIncludesFile()protected org.apache.maven.artifact.ArtifactgetMojoArtifact()doublegetParallelTestsTimeoutForcedInSeconds()doublegetParallelTestsTimeoutInSeconds()protected java.lang.StringgetPluginName()java.lang.StringgetReportFormat()protected java.lang.StringgetReportSchemaLocation()java.io.FilegetReportsDirectory()protected intgetRerunFailingTestsCount()java.lang.StringgetRunOrder()java.lang.StringgetShutdown()intgetSkipAfterFailureCount()java.io.File[]getSuiteXmlFiles()java.lang.StringgetTest()java.io.FilegetTestClassesDirectory()protected voidhandleSummary(org.apache.maven.surefire.suite.RunResult summary, java.lang.Exception firstForkException)protected booleanhasSuiteXmlFiles()booleanisPrintSummary()booleanisSkip()booleanisSkipExec()protected booleanisSkipExecution()booleanisSkipTests()booleanisTestFailureIgnore()booleanisUseFile()booleanisUseManifestOnlyJar()booleanisUseSystemClassLoader()voidsetBasedir(java.io.File basedir)voidsetClassesDirectory(java.io.File classesDirectory)voidsetDebugForkedProcess(java.lang.String debugForkedProcess)voidsetEncoding(java.lang.String encoding)voidsetFailIfNoSpecifiedTests(boolean failIfNoSpecifiedTests)voidsetForkedProcessExitTimeoutInSeconds(int forkedProcessExitTimeoutInSeconds)voidsetForkedProcessTimeoutInSeconds(int forkedProcessTimeoutInSeconds)voidsetIncludes(java.util.List<java.lang.String> includes)voidsetParallelTestsTimeoutForcedInSeconds(double parallelTestsTimeoutForcedInSeconds)voidsetParallelTestsTimeoutInSeconds(double parallelTestsTimeoutInSeconds)voidsetPrintSummary(boolean printSummary)voidsetReportFormat(java.lang.String reportFormat)voidsetReportsDirectory(java.io.File reportsDirectory)voidsetRunOrder(java.lang.String runOrder)voidsetSkip(boolean skip)voidsetSkipExec(boolean skipExec)voidsetSkipTests(boolean skipTests)voidsetSuiteXmlFiles(java.io.File[] suiteXmlFiles)voidsetTest(java.lang.String test)voidsetTestClassesDirectory(java.io.File testClassesDirectory)voidsetTestFailureIgnore(boolean testFailureIgnore)voidsetUseFile(boolean useFile)voidsetUseManifestOnlyJar(boolean useManifestOnlyJar)voidsetUseSystemClassLoader(boolean useSystemClassLoader)protected java.util.List<java.io.File>suiteXmlFiles()-
Methods inherited from class org.apache.maven.plugin.surefire.AbstractSurefireMojo
addPluginSpecificChecksumItems, cleanupForkConfiguration, convertWithCoreCount, createCopyAndReplaceForkNumPlaceholder, createProviders, createSurefireBootDirectoryInBuild, createSurefireBootDirectoryInTemp, createTmpDirectoryNameWithJava7, createTmpDirectoryWithJava7, effectiveIsEnableAssertions, execute, getAdditionalClasspathElements, getArgLine, getArtifactFactory, getArtifactResolver, getClassLoaderConfiguration, getClasspathDependencyExcludes, getClasspathDependencyScopeExclude, getConsoleLogger, getDependenciesToScan, getEffectiveForkCount, getEffectiveForkMode, getEnvironmentVariables, getExcludedGroups, getExcludes, getFailIfNoTests, getForkCount, getForkMode, getGroups, getJunitArtifactName, getJunitPlatformArtifactName, getJvm, getLocalRepository, getMetadataSource, getObjectFactory, getParallel, getPerCoreThreadCount, getPluginArtifactMap, getPluginDescriptor, getProject, getProjectArtifactMap, getProjectBuildDirectory, getProjectTestArtifacts, getRemoteRepositories, getReportNameSuffix, getSession, getSpecificTests, getStatisticsFile, getSurefireTempDir, getSystemProperties, getSystemPropertiesFile, getSystemPropertyVariables, getTempDir, getTestNGArtifactName, getTestSourceDirectory, getThreadCount, getThreadCountClasses, getThreadCountMethods, getThreadCountSuites, getToolchain, getToolchainManager, getUseUnlimitedThreads, getWorkingDirectory, hasExecutedBefore, isAnyConcurrencySelected, isAnyGroupsSelected, isChildDelegation, isDisableXmlReport, isEnableAssertions, isForking, isMavenParallel, isParallelOptimized, isRedirectTestOutputToFile, isReuseForks, isTrimStackTrace, logDebugOrCliShowErrors, logReportsDirectory, scanDependencies, setAdditionalClasspathElements, setArgLine, setArtifactFactory, setArtifactResolver, setChildDelegation, setClasspathDependencyExcludes, setClasspathDependencyScopeExclude, setDependenciesToScan, setDisableXmlReport, setEnableAssertions, setEnvironmentVariables, setExcludedGroups, setExcludes, setFailIfNoTests, setForkMode, setGroups, setJunitArtifactName, setJunitPlatformArtifactName, setLocalRepository, setMetadataSource, setObjectFactory, setParallel, setParallelOptimized, setPerCoreThreadCount, setPluginArtifactMap, setProject, setProjectArtifactMap, setProjectBuildDirectory, setProperties, setRedirectTestOutputToFile, setRemoteRepositories, setReportNameSuffix, setSession, setSystemProperties, setSystemPropertiesFile, setSystemPropertyVariables, setTempDir, setTestNGArtifactName, setTestSourceDirectory, setThreadCount, setThreadCountClasses, setThreadCountMethods, setThreadCountSuites, setToolchainManager, setTrimStackTrace, setUseUnlimitedThreads, setWorkingDirectory, verifyParameters
-
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
-
-
-
Field Detail
-
classesDirectory
@Parameter(defaultValue="${project.build.outputDirectory}") private java.io.File classesDirectoryThe directory containing generated classes of the project being tested. This will be included after the test classes in the test classpath.
-
testFailureIgnore
@Parameter(property="maven.test.failure.ignore", defaultValue="false") private boolean testFailureIgnoreSet this to "true" to ignore a failure during testing. Its use is NOT RECOMMENDED, but quite convenient on occasion.
-
reportsDirectory
@Parameter(defaultValue="${project.build.directory}/surefire-reports") private java.io.File reportsDirectoryBase directory where all reports are written to.
-
test
@Parameter(property="test") private java.lang.String test
-
printSummary
@Parameter(property="surefire.printSummary", defaultValue="true") private boolean printSummaryOption to print summary of test suites or just print the test cases that have errors.
-
reportFormat
@Parameter(property="surefire.reportFormat", defaultValue="brief") private java.lang.String reportFormatSelects the formatting for the test report to be generated. Can be set as "brief" or "plain". Only applies to the output format of the output files (target/surefire-reports/testName.txt)
-
useFile
@Parameter(property="surefire.useFile", defaultValue="true") private boolean useFileOption to generate a file test report or just output the test report to the console.
-
failIfNoSpecifiedTests
@Parameter(property="surefire.failIfNoSpecifiedTests") private java.lang.Boolean failIfNoSpecifiedTests
Set this to "true" to cause a failure if none of the tests specified in -Dtest=... are run. Defaults to "true".- Since:
- 2.12
-
debugForkedProcess
@Parameter(property="maven.surefire.debug") private java.lang.String debugForkedProcess
Attach a debugger to the forked JVM. If set to "true", the process will suspend and wait for a debugger to attach on port 5005. If set to some other string, that string will be appended to the argLine, allowing you to configure arbitrary debuggability options (without overwriting the other options specified through theargLineparameter).- Since:
- 2.4
-
forkedProcessTimeoutInSeconds
@Parameter(property="surefire.timeout") private int forkedProcessTimeoutInSeconds
Kill the forked test process after a certain number of seconds. If set to 0, wait forever for the process, never timing out.- Since:
- 2.4
-
forkedProcessExitTimeoutInSeconds
@Parameter(property="surefire.exitTimeout", defaultValue="30") private int forkedProcessExitTimeoutInSecondsForked process is normally terminated without any significant delay after given tests have completed. If the particular tests started non-daemon Thread(s), the process hangs instead of been properly terminated bySystem.exit(). Use this parameter in order to determine the timeout of terminating the process. see the documentation: http://maven.apache.org/surefire/maven-surefire-plugin/examples/shutdown.html Turns to default fallback value of 30 seconds if negative integer.- Since:
- 2.20
-
parallelTestsTimeoutInSeconds
@Parameter(property="surefire.parallel.timeout") private double parallelTestsTimeoutInSeconds
Stop executing queued parallel JUnit tests after a certain number of seconds.
Example values: "3.5", "4"
If set to 0, wait forever, never timing out. Makes sense with specifiedparalleldifferent from "none".- Since:
- 2.16
-
parallelTestsTimeoutForcedInSeconds
@Parameter(property="surefire.parallel.forcedTimeout") private double parallelTestsTimeoutForcedInSeconds
Stop executing queued parallel JUnit tests andinterruptcurrently running tests after a certain number of seconds.
Example values: "3.5", "4"
If set to 0, wait forever, never timing out. Makes sense with specifiedparalleldifferent from "none".- Since:
- 2.16
-
includes
@Parameter private java.util.List<java.lang.String> includes
-
useSystemClassLoader
@Parameter(property="surefire.useSystemClassLoader", defaultValue="true") private boolean useSystemClassLoaderOption to pass dependencies to the system's classloader instead of using an isolated class loader when forking. Prevents problems with JDKs which implement the service provider lookup mechanism by using the system's ClassLoader.- Since:
- 2.3
-
useManifestOnlyJar
@Parameter(property="surefire.useManifestOnlyJar", defaultValue="true") private boolean useManifestOnlyJarBy default, Surefire forks your tests using a manifest-only JAR; set this parameter to "false" to force it to launch your tests with a plain old Java classpath. (See the http://maven.apache.org/plugins/maven-surefire-plugin/examples/class-loading.html for a more detailed explanation of manifest-only JARs and their benefits.)
Beware, setting this to "false" may cause your tests to fail on Windows if your classpath is too long.- Since:
- 2.4.3
-
encoding
@Parameter(property="surefire.encoding", defaultValue="${project.reporting.outputEncoding}") private java.lang.String encodingThe character encoding scheme to be applied while generating test report files (see target/surefire-reports/yourTestName.txt). The report output files (*-out.txt) are still encoded with JVM's encoding used in standard out/err pipes.- Since:
- 3.0.0-M1
-
rerunFailingTestsCount
@Parameter(property="surefire.rerunFailingTestsCount", defaultValue="0") private int rerunFailingTestsCount(JUnit 4+ providers) The number of times each failing test will be rerun. If set larger than 0, rerun failing tests immediately after they fail. If a failing test passes in any of those reruns, it will be marked as pass and reported as a "flake". However, all the failing attempts will be recorded.
-
suiteXmlFiles
@Parameter(property="surefire.suiteXmlFiles") private java.io.File[] suiteXmlFiles
(TestNG) List of <suiteXmlFile> elements specifying TestNG suite xml file locations. Note thatsuiteXmlFilesis incompatible with several other parameters of this plugin, likeincludesandexcludes.
This parameter is ignored if thetestparameter is specified (allowing you to run a single test instead of an entire suite).- Since:
- 2.2
-
runOrder
@Parameter(property="surefire.runOrder", defaultValue="filesystem") private java.lang.String runOrderDefines the order the tests will be run in. Supported values arealphabetical,reversealphabetical,random,hourly(alphabetical on even hours, reverse alphabetical on odd hours),failedfirst,balancedandfilesystem.
Odd/Even for hourly is determined at the time the of scanning the classpath, meaning it could change during a multi-module build.
Failed first will run tests that failed on previous run first, as well as new tests for this run.
Balanced is only relevant with parallel=classes, and will try to optimize the run-order of the tests reducing the overall execution time. Initially a statistics file is created and every next test run will reorder classes.
Note that the statistics are stored in a file named .surefire-XXXXXXXXX beside pom.xml and should not be checked into version control. The "XXXXX" is the SHA1 checksum of the entire surefire configuration, so different configurations will have different statistics files, meaning if you change any configuration settings you will re-run once before new statistics data can be established.- Since:
- 2.7
-
includesFile
@Parameter(property="surefire.includesFile") private java.io.File includesFile
A file containing include patterns. Blank lines, or lines starting with # are ignored. Ifincludesare also specified, these patterns are appended. Example with path, simple and regex includes:*/test/* **/NotIncludedByDefault.java %regex[.*Test.*|.*Not.*]
-
excludesFile
@Parameter(property="surefire.excludesFile") private java.io.File excludesFile
A file containing exclude patterns. Blank lines, or lines starting with # are ignored. Ifexcludesare also specified, these patterns are appended. Example with path, simple and regex excludes:
*/test/* **/DontRunTest.* %regex[.*Test.*|.*Not.*]
-
skipAfterFailureCount
@Parameter(property="surefire.skipAfterFailureCount", defaultValue="0") private int skipAfterFailureCountSet to error/failure count in order to skip remaining tests. Due to race conditions in parallel/forked execution this may not be fully guaranteed.
Enable with system property-Dsurefire.skipAfterFailureCount=1or any number greater than zero. Defaults to "0".
See the prerequisites and limitations in documentation:
http://maven.apache.org/plugins/maven-surefire-plugin/examples/skip-after-failure.html- Since:
- 2.19
-
shutdown
@Parameter(property="surefire.shutdown", defaultValue="testset") private java.lang.String shutdownAfter the plugin process is shutdown by sending SIGTERM signal (CTRL+C), SHUTDOWN command is received by every forked JVM.
By default (shutdown=testset) forked JVM would not continue with new test which means that the current test may still continue to run.
The parameter can be configured with other two valuesexitandkill.
Usingexitforked JVM executesSystem.exit(1)after the plugin process has received SIGTERM signal.
Usingkillthe JVM executesRuntime.halt(1)and kills itself.- Since:
- 2.19
-
-
Method Detail
-
getRerunFailingTestsCount
protected int getRerunFailingTestsCount()
- Specified by:
getRerunFailingTestsCountin classorg.apache.maven.plugin.surefire.AbstractSurefireMojo
-
handleSummary
protected void handleSummary(org.apache.maven.surefire.suite.RunResult summary, java.lang.Exception firstForkException) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Specified by:
handleSummaryin classorg.apache.maven.plugin.surefire.AbstractSurefireMojo- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
isSkipExecution
protected boolean isSkipExecution()
- Specified by:
isSkipExecutionin classorg.apache.maven.plugin.surefire.AbstractSurefireMojo
-
getPluginName
protected java.lang.String getPluginName()
- Specified by:
getPluginNamein classorg.apache.maven.plugin.surefire.AbstractSurefireMojo
-
getDefaultIncludes
protected java.lang.String[] getDefaultIncludes()
- Specified by:
getDefaultIncludesin classorg.apache.maven.plugin.surefire.AbstractSurefireMojo
-
getReportSchemaLocation
protected java.lang.String getReportSchemaLocation()
- Specified by:
getReportSchemaLocationin classorg.apache.maven.plugin.surefire.AbstractSurefireMojo
-
getMojoArtifact
protected org.apache.maven.artifact.Artifact getMojoArtifact()
- Specified by:
getMojoArtifactin classorg.apache.maven.plugin.surefire.AbstractSurefireMojo
-
isSkipTests
public boolean isSkipTests()
- Specified by:
isSkipTestsin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters- Specified by:
isSkipTestsin interfaceorg.apache.maven.plugin.surefire.SurefireReportParameters
-
setSkipTests
public void setSkipTests(boolean skipTests)
- Specified by:
setSkipTestsin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters- Specified by:
setSkipTestsin interfaceorg.apache.maven.plugin.surefire.SurefireReportParameters
-
isSkipExec
public boolean isSkipExec()
- Specified by:
isSkipExecin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters- Specified by:
isSkipExecin interfaceorg.apache.maven.plugin.surefire.SurefireReportParameters
-
setSkipExec
public void setSkipExec(boolean skipExec)
- Specified by:
setSkipExecin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters- Specified by:
setSkipExecin interfaceorg.apache.maven.plugin.surefire.SurefireReportParameters
-
isSkip
public boolean isSkip()
- Specified by:
isSkipin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters- Specified by:
isSkipin interfaceorg.apache.maven.plugin.surefire.SurefireReportParameters
-
setSkip
public void setSkip(boolean skip)
- Specified by:
setSkipin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters- Specified by:
setSkipin interfaceorg.apache.maven.plugin.surefire.SurefireReportParameters
-
isTestFailureIgnore
public boolean isTestFailureIgnore()
- Specified by:
isTestFailureIgnorein interfaceorg.apache.maven.plugin.surefire.SurefireReportParameters
-
setTestFailureIgnore
public void setTestFailureIgnore(boolean testFailureIgnore)
- Specified by:
setTestFailureIgnorein interfaceorg.apache.maven.plugin.surefire.SurefireReportParameters
-
getBasedir
public java.io.File getBasedir()
- Specified by:
getBasedirin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters- Specified by:
getBasedirin interfaceorg.apache.maven.plugin.surefire.SurefireReportParameters
-
setBasedir
public void setBasedir(java.io.File basedir)
- Specified by:
setBasedirin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters- Specified by:
setBasedirin interfaceorg.apache.maven.plugin.surefire.SurefireReportParameters
-
getTestClassesDirectory
public java.io.File getTestClassesDirectory()
- Specified by:
getTestClassesDirectoryin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters- Specified by:
getTestClassesDirectoryin interfaceorg.apache.maven.plugin.surefire.SurefireReportParameters
-
setTestClassesDirectory
public void setTestClassesDirectory(java.io.File testClassesDirectory)
- Specified by:
setTestClassesDirectoryin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters- Specified by:
setTestClassesDirectoryin interfaceorg.apache.maven.plugin.surefire.SurefireReportParameters
-
getClassesDirectory
public java.io.File getClassesDirectory()
- Specified by:
getClassesDirectoryin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters
-
setClassesDirectory
public void setClassesDirectory(java.io.File classesDirectory)
- Specified by:
setClassesDirectoryin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters
-
getReportsDirectory
public java.io.File getReportsDirectory()
- Specified by:
getReportsDirectoryin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters- Specified by:
getReportsDirectoryin interfaceorg.apache.maven.plugin.surefire.SurefireReportParameters
-
setReportsDirectory
public void setReportsDirectory(java.io.File reportsDirectory)
- Specified by:
setReportsDirectoryin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters- Specified by:
setReportsDirectoryin interfaceorg.apache.maven.plugin.surefire.SurefireReportParameters
-
getTest
public java.lang.String getTest()
- Specified by:
getTestin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters
-
isUseSystemClassLoader
public boolean isUseSystemClassLoader()
- Specified by:
isUseSystemClassLoaderin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters
-
setUseSystemClassLoader
public void setUseSystemClassLoader(boolean useSystemClassLoader)
- Specified by:
setUseSystemClassLoaderin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters
-
isUseManifestOnlyJar
public boolean isUseManifestOnlyJar()
- Specified by:
isUseManifestOnlyJarin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters
-
setUseManifestOnlyJar
public void setUseManifestOnlyJar(boolean useManifestOnlyJar)
- Specified by:
setUseManifestOnlyJarin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters
-
getEncoding
public java.lang.String getEncoding()
- Specified by:
getEncodingin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters
-
setEncoding
public void setEncoding(java.lang.String encoding)
- Specified by:
setEncodingin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters
-
getFailIfNoSpecifiedTests
public java.lang.Boolean getFailIfNoSpecifiedTests()
- Specified by:
getFailIfNoSpecifiedTestsin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters
-
setFailIfNoSpecifiedTests
public void setFailIfNoSpecifiedTests(boolean failIfNoSpecifiedTests)
- Specified by:
setFailIfNoSpecifiedTestsin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters
-
getSkipAfterFailureCount
public int getSkipAfterFailureCount()
- Specified by:
getSkipAfterFailureCountin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters
-
getShutdown
public java.lang.String getShutdown()
- Specified by:
getShutdownin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters
-
isPrintSummary
public boolean isPrintSummary()
- Specified by:
isPrintSummaryin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters
-
setPrintSummary
public void setPrintSummary(boolean printSummary)
- Specified by:
setPrintSummaryin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters
-
getReportFormat
public java.lang.String getReportFormat()
- Specified by:
getReportFormatin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters
-
setReportFormat
public void setReportFormat(java.lang.String reportFormat)
- Specified by:
setReportFormatin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters
-
isUseFile
public boolean isUseFile()
- Specified by:
isUseFilein interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters
-
setUseFile
public void setUseFile(boolean useFile)
- Specified by:
setUseFilein interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters
-
getDebugForkedProcess
public java.lang.String getDebugForkedProcess()
- Specified by:
getDebugForkedProcessin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters
-
setDebugForkedProcess
public void setDebugForkedProcess(java.lang.String debugForkedProcess)
- Specified by:
setDebugForkedProcessin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters
-
getForkedProcessTimeoutInSeconds
public int getForkedProcessTimeoutInSeconds()
- Specified by:
getForkedProcessTimeoutInSecondsin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters
-
setForkedProcessTimeoutInSeconds
public void setForkedProcessTimeoutInSeconds(int forkedProcessTimeoutInSeconds)
- Specified by:
setForkedProcessTimeoutInSecondsin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters
-
getForkedProcessExitTimeoutInSeconds
public int getForkedProcessExitTimeoutInSeconds()
- Specified by:
getForkedProcessExitTimeoutInSecondsin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters
-
setForkedProcessExitTimeoutInSeconds
public void setForkedProcessExitTimeoutInSeconds(int forkedProcessExitTimeoutInSeconds)
- Specified by:
setForkedProcessExitTimeoutInSecondsin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters
-
getParallelTestsTimeoutInSeconds
public double getParallelTestsTimeoutInSeconds()
- Specified by:
getParallelTestsTimeoutInSecondsin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters
-
setParallelTestsTimeoutInSeconds
public void setParallelTestsTimeoutInSeconds(double parallelTestsTimeoutInSeconds)
- Specified by:
setParallelTestsTimeoutInSecondsin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters
-
getParallelTestsTimeoutForcedInSeconds
public double getParallelTestsTimeoutForcedInSeconds()
- Specified by:
getParallelTestsTimeoutForcedInSecondsin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters
-
setParallelTestsTimeoutForcedInSeconds
public void setParallelTestsTimeoutForcedInSeconds(double parallelTestsTimeoutForcedInSeconds)
- Specified by:
setParallelTestsTimeoutForcedInSecondsin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters
-
setTest
public void setTest(java.lang.String test)
- Specified by:
setTestin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters
-
getIncludes
public java.util.List<java.lang.String> getIncludes()
- Specified by:
getIncludesin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters- Specified by:
getIncludesin classorg.apache.maven.plugin.surefire.AbstractSurefireMojo
-
setIncludes
public void setIncludes(java.util.List<java.lang.String> includes)
- Specified by:
setIncludesin interfaceorg.apache.maven.plugin.surefire.SurefireExecutionParameters- Specified by:
setIncludesin classorg.apache.maven.plugin.surefire.AbstractSurefireMojo
-
getSuiteXmlFiles
public java.io.File[] getSuiteXmlFiles()
- Specified by:
getSuiteXmlFilesin classorg.apache.maven.plugin.surefire.AbstractSurefireMojo
-
setSuiteXmlFiles
public void setSuiteXmlFiles(java.io.File[] suiteXmlFiles)
- Specified by:
setSuiteXmlFilesin classorg.apache.maven.plugin.surefire.AbstractSurefireMojo
-
getRunOrder
public java.lang.String getRunOrder()
- Specified by:
getRunOrderin classorg.apache.maven.plugin.surefire.AbstractSurefireMojo
-
setRunOrder
public void setRunOrder(java.lang.String runOrder)
- Specified by:
setRunOrderin classorg.apache.maven.plugin.surefire.AbstractSurefireMojo
-
getIncludesFile
public java.io.File getIncludesFile()
- Specified by:
getIncludesFilein classorg.apache.maven.plugin.surefire.AbstractSurefireMojo
-
getExcludesFile
public java.io.File getExcludesFile()
- Specified by:
getExcludesFilein classorg.apache.maven.plugin.surefire.AbstractSurefireMojo
-
suiteXmlFiles
protected final java.util.List<java.io.File> suiteXmlFiles()
- Specified by:
suiteXmlFilesin classorg.apache.maven.plugin.surefire.AbstractSurefireMojo
-
hasSuiteXmlFiles
protected final boolean hasSuiteXmlFiles()
- Specified by:
hasSuiteXmlFilesin classorg.apache.maven.plugin.surefire.AbstractSurefireMojo
-
-