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,SurefireExecutionParameters,SurefireReportParameters
@Mojo(name="test",
defaultPhase=TEST,
threadSafe=true,
requiresDependencyResolution=TEST)
public class SurefirePlugin
extends AbstractSurefireMojo
implements SurefireReportParameters
Run tests using Surefire.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.maven.plugin.surefire.AbstractSurefireMojo
AbstractSurefireMojo.DynamicProviderInfo, AbstractSurefireMojo.JUnit3ProviderInfo, AbstractSurefireMojo.JUnit4ProviderInfo, AbstractSurefireMojo.JUnitCoreProviderInfo, AbstractSurefireMojo.JUnitPlatformProviderInfo, AbstractSurefireMojo.ProviderList, AbstractSurefireMojo.TestNgProviderInfo -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate FileThe directory containing generated classes of the project being tested.private StringAttach a debugger to the forked JVM.private StringSince 3.0.0-M4 the process checkers are disabled.private StringThe character encoding scheme to be applied while generating test report files (see target/surefire-reports/yourTestName.txt).private String[]You can selectively exclude individual environment variables by enumerating their keys.private FileA file containing exclude patterns.private BooleanSet this to "true" to cause a failure if none of the tests specified in -Dtest=...private intForked process is normally terminated without any significant delay after given tests have completed.private intKill the forked test process after a certain number of seconds.private FileA file containing include patterns.private doubleStop executing queued parallel JUnit tests andinterruptcurrently running tests after a certain number of seconds.private doubleStop executing queued parallel JUnit tests after a certain number of seconds.private booleanOption to print summary of test suites or just print the test cases that have errors.private StringSelects the formatting for the test report to be generated.private FileBase directory where all reports are written to.private int(JUnit 4+ providers and JUnit 5+ providers since 3.0.0-M4) The number of times each failing test will be rerun.private StringDefines the order the tests will be run in.private StringAfter the plugin process is shutdown by sending SIGTERM signal (CTRL+C), SHUTDOWN command is received by every forked JVM.private intSet to error/failure count in order to skip remaining tests.private File[](TestNG) List of <suiteXmlFile> elements specifying TestNG suite xml file locations.private Stringprivate booleanSet this to "true" to ignore a failure during testing.private booleanOption to generate a file test report or just output the test report to the console.private booleanBy 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 booleanDisables modular path (aka Jigsaw project since of Java 9) even if module-info.java is used in project.private booleanOption to pass dependencies to the system's classloader instead of using an isolated class loader when forking.Fields inherited from class org.apache.maven.plugin.surefire.AbstractSurefireMojo
basedir, skip, skipExec, skipTests, testClassesDirectoryFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String[]protected final Stringprotected final String[]intintdoubledoubleprotected Stringprotected Stringprotected intintFile[]getTest()protected voidhandleSummary(RunResult summary, Exception firstForkException) protected final booleanbooleanbooleanisSkip()booleanprotected booleanbooleanbooleanbooleanbooleanbooleanvoidsetBasedir(File basedir) voidsetClassesDirectory(File classesDirectory) voidsetDebugForkedProcess(String debugForkedProcess) voidsetEncoding(String encoding) (package private) voidsetExcludedEnvironmentVariables(String[] excludedEnvironmentVariables) voidsetFailIfNoSpecifiedTests(boolean failIfNoSpecifiedTests) voidsetForkedProcessExitTimeoutInSeconds(int forkedProcessExitTimeoutInSeconds) voidsetForkedProcessTimeoutInSeconds(int forkedProcessTimeoutInSeconds) voidsetIncludes(List<String> includes) voidsetParallelTestsTimeoutForcedInSeconds(double parallelTestsTimeoutForcedInSeconds) voidsetParallelTestsTimeoutInSeconds(double parallelTestsTimeoutInSeconds) voidsetPrintSummary(boolean printSummary) voidsetReportFormat(String reportFormat) voidsetReportsDirectory(File reportsDirectory) voidsetRunOrder(String runOrder) voidsetSkip(boolean skip) voidsetSkipExec(boolean skipExec) voidsetSkipTests(boolean skipTests) voidsetSuiteXmlFiles(File[] suiteXmlFiles) voidvoidsetTestClassesDirectory(File testClassesDirectory) voidsetTestFailureIgnore(boolean testFailureIgnore) voidsetUseFile(boolean useFile) voidsetUseManifestOnlyJar(boolean useManifestOnlyJar) protected voidsetUseModulePath(boolean useModulePath) voidsetUseSystemClassLoader(boolean useSystemClassLoader) CallsAbstractSurefireMojo.getSuiteXmlFiles()aslist.protected booleanMethods inherited from class org.apache.maven.plugin.surefire.AbstractSurefireMojo
addPluginSpecificChecksumItems, cleanupForkConfiguration, convertWithCoreCount, createCopyAndReplaceForkNumPlaceholder, createProviders, createSurefireBootDirectoryInBuild, createSurefireBootDirectoryInTemp, effectiveIsEnableAssertions, execute, getAdditionalClasspathElements, getArgLine, getClassLoaderConfiguration, getClasspathDependencyExcludes, getClasspathDependencyScopeExclude, getConsoleLogger, getDependenciesToScan, getDependencyResolver, getEffectiveForkCount, getEffectiveForkMode, getEnvironmentVariables, getExcludedGroups, getExcludes, getFailIfNoTests, getForkCount, getForkMode, getGroups, getJunitArtifactName, getJvm, getLocalRepository, getMojoArtifact, getObjectFactory, getParallel, getPerCoreThreadCount, getPluginArtifactMap, getPluginDescriptor, getProject, getProjectArtifactMap, getProjectBuildDirectory, getProjectRemoteRepositories, getProjectTestArtifacts, getRemoteRepositories, getReportNameSuffix, getRepositorySystem, getSession, getSpecificTests, getSurefireTempDir, getSystemProperties, getSystemPropertiesFile, 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, scanDependencies, setAdditionalClasspathElements, setArgLine, setChildDelegation, setClasspathDependencyExcludes, setClasspathDependencyScopeExclude, setDependenciesToScan, setDependencyResolver, setDisableXmlReport, setEnableAssertions, setEnvironmentVariables, setExcludedGroups, setExcludes, setFailIfNoTests, setForkMode, setGroups, setJunitArtifactName, setLocalRepository, setLogger, setObjectFactory, setParallel, setParallelOptimized, setPerCoreThreadCount, setPluginArtifactMap, setPluginDescriptor, setProject, setProjectArtifactMap, setProjectBuildDirectory, setProjectRemoteRepositories, setProperties, setRedirectTestOutputToFile, setRemoteRepositories, setReportNameSuffix, setRepositorySystem, setSession, setSystemProperties, setSystemPropertiesFile, setSystemPropertyVariables, setTempDir, setTestNGArtifactName, setTestSourceDirectory, setThreadCount, setThreadCountClasses, setThreadCountMethods, setThreadCountSuites, setToolchainManager, setTrimStackTrace, setUseUnlimitedThreads, setWorkingDirectory, verifyParametersMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.plugin.surefire.SurefireReportParameters
getFailIfNoTests, setFailIfNoTests
-
Field Details
-
classesDirectory
The 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 File reportsDirectoryBase directory where all reports are written to. -
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
Selects 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
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
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 forkedProcessTimeoutInSecondsKill 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 parallelTestsTimeoutInSecondsStop 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 parallelTestsTimeoutForcedInSecondsStop 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
-
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 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 encoded in UTF-8 if not set otherwise.- Since:
- 3.0.0-M1
-
rerunFailingTestsCount
@Parameter(property="surefire.rerunFailingTestsCount", defaultValue="0") private int rerunFailingTestsCount(JUnit 4+ providers and JUnit 5+ providers since 3.0.0-M4) 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
(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
Defines 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
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.*]- Since:
- 2.13
-
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.*]- Since:
- 2.13
-
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
After the plugin process is shutdown by sending SIGTERM signal (CTRL+C), SHUTDOWN command is received by every forked JVM.
The value is set to (shutdown=exit) by default (changed in version 3.0.0-M4).
The parameter can be configured with other two valuestestsetandkill.
With(shutdown=testset) the test set may still continue to run in forked JVM.
Usingexitforked JVM executesSystem.exit(1)after the plugin process has received SIGTERM signal.
Usingkillthe JVM executesRuntime.halt(1)and kills itself.- Since:
- 2.19
-
useModulePath
@Parameter(property="surefire.useModulePath", defaultValue="true") private boolean useModulePathDisables modular path (aka Jigsaw project since of Java 9) even if module-info.java is used in project.
Enabled by default. If enabled, module-info.java exists and executes with JDK 9+, modular path is used.- Since:
- 3.0.0-M2
-
excludedEnvironmentVariables
@Parameter(property="surefire.excludedEnvironmentVariables") private String[] excludedEnvironmentVariablesYou can selectively exclude individual environment variables by enumerating their keys.
The environment is a system-dependent mapping from keys to values which is inherited from the Maven process to the forked Surefire processes. The keys must literally (case sensitive) match in order to exclude their environment variable.
Example to exclude three environment variables:
mvn test -Dsurefire.excludedEnvironmentVariables=ACME1,ACME2,ACME3- Since:
- 3.0.0-M4
-
enableProcessChecker
Since 3.0.0-M4 the process checkers are disabled. You can enable them namely by settingpingandnativeorallin this parameter.
The checker is useful in situations when you kill the build on CI and you want the Surefire forked JVM to kill the tests asap and free all handlers on the file system been previously used by the JVM and by the tests.
Thepingshould be safely used together with ZGC or Shenandoah Garbage Collector. Due to thepingrelies on timing the PING (triggered every 30 seconds), slow GC may pause the timers and pretend that the parent process of the fork JVM does not exist.
Thenativeis very fast checker. It is useful mechanism on Unix based systems, Linux distributions and Alpine/BusyBox Linux. See the JIRA SUREFIRE-1631 for Windows issues.
Another useful configuration parameter isforkedProcessTimeoutInSeconds.
See the Frequently Asked Questions page with more details:
http://maven.apache.org/surefire/maven-surefire-plugin/faq.html#kill-jvm
http://maven.apache.org/surefire/maven-failsafe-plugin/faq.html#kill-jvm
Example of use:
mvn test -Dsurefire.enableProcessChecker=all- Since:
- 3.0.0-M4
-
-
Constructor Details
-
SurefirePlugin
public SurefirePlugin()
-
-
Method Details
-
getRerunFailingTestsCount
protected int getRerunFailingTestsCount()- Specified by:
getRerunFailingTestsCountin classAbstractSurefireMojo
-
handleSummary
protected void handleSummary(RunResult summary, Exception firstForkException) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException - Specified by:
handleSummaryin classAbstractSurefireMojo- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
isSkipExecution
protected boolean isSkipExecution()- Specified by:
isSkipExecutionin classAbstractSurefireMojo
-
getPluginName
- Specified by:
getPluginNamein classAbstractSurefireMojo
-
getDefaultIncludes
- Specified by:
getDefaultIncludesin classAbstractSurefireMojo
-
getReportSchemaLocation
- Specified by:
getReportSchemaLocationin classAbstractSurefireMojo
-
isSkipTests
public boolean isSkipTests()- Specified by:
isSkipTestsin interfaceSurefireExecutionParameters- Specified by:
isSkipTestsin interfaceSurefireReportParameters
-
setSkipTests
public void setSkipTests(boolean skipTests) - Specified by:
setSkipTestsin interfaceSurefireExecutionParameters- Specified by:
setSkipTestsin interfaceSurefireReportParameters
-
isSkipExec
public boolean isSkipExec()- Specified by:
isSkipExecin interfaceSurefireExecutionParameters- Specified by:
isSkipExecin interfaceSurefireReportParameters
-
setSkipExec
public void setSkipExec(boolean skipExec) - Specified by:
setSkipExecin interfaceSurefireExecutionParameters- Specified by:
setSkipExecin interfaceSurefireReportParameters
-
isSkip
public boolean isSkip()- Specified by:
isSkipin interfaceSurefireExecutionParameters- Specified by:
isSkipin interfaceSurefireReportParameters
-
setSkip
public void setSkip(boolean skip) - Specified by:
setSkipin interfaceSurefireExecutionParameters- Specified by:
setSkipin interfaceSurefireReportParameters
-
isTestFailureIgnore
public boolean isTestFailureIgnore()- Specified by:
isTestFailureIgnorein interfaceSurefireReportParameters
-
setTestFailureIgnore
public void setTestFailureIgnore(boolean testFailureIgnore) - Specified by:
setTestFailureIgnorein interfaceSurefireReportParameters
-
getBasedir
- Specified by:
getBasedirin interfaceSurefireExecutionParameters- Specified by:
getBasedirin interfaceSurefireReportParameters
-
setBasedir
- Specified by:
setBasedirin interfaceSurefireExecutionParameters- Specified by:
setBasedirin interfaceSurefireReportParameters
-
getTestClassesDirectory
- Specified by:
getTestClassesDirectoryin interfaceSurefireExecutionParameters- Specified by:
getTestClassesDirectoryin interfaceSurefireReportParameters
-
setTestClassesDirectory
- Specified by:
setTestClassesDirectoryin interfaceSurefireExecutionParameters- Specified by:
setTestClassesDirectoryin interfaceSurefireReportParameters
-
getClassesDirectory
- Specified by:
getClassesDirectoryin interfaceSurefireExecutionParameters
-
setClassesDirectory
- Specified by:
setClassesDirectoryin interfaceSurefireExecutionParameters
-
getReportsDirectory
- Specified by:
getReportsDirectoryin interfaceSurefireExecutionParameters- Specified by:
getReportsDirectoryin interfaceSurefireReportParameters
-
setReportsDirectory
- Specified by:
setReportsDirectoryin interfaceSurefireExecutionParameters- Specified by:
setReportsDirectoryin interfaceSurefireReportParameters
-
getTest
- Specified by:
getTestin interfaceSurefireExecutionParameters
-
isUseSystemClassLoader
public boolean isUseSystemClassLoader()- Specified by:
isUseSystemClassLoaderin interfaceSurefireExecutionParameters
-
setUseSystemClassLoader
public void setUseSystemClassLoader(boolean useSystemClassLoader) - Specified by:
setUseSystemClassLoaderin interfaceSurefireExecutionParameters
-
isUseManifestOnlyJar
public boolean isUseManifestOnlyJar()- Specified by:
isUseManifestOnlyJarin interfaceSurefireExecutionParameters
-
setUseManifestOnlyJar
public void setUseManifestOnlyJar(boolean useManifestOnlyJar) - Specified by:
setUseManifestOnlyJarin interfaceSurefireExecutionParameters
-
getEncoding
- Specified by:
getEncodingin interfaceSurefireExecutionParameters
-
setEncoding
- Specified by:
setEncodingin interfaceSurefireExecutionParameters
-
getFailIfNoSpecifiedTests
- Specified by:
getFailIfNoSpecifiedTestsin interfaceSurefireExecutionParameters
-
setFailIfNoSpecifiedTests
public void setFailIfNoSpecifiedTests(boolean failIfNoSpecifiedTests) - Specified by:
setFailIfNoSpecifiedTestsin interfaceSurefireExecutionParameters
-
getSkipAfterFailureCount
public int getSkipAfterFailureCount()- Specified by:
getSkipAfterFailureCountin interfaceSurefireExecutionParameters
-
getShutdown
- Specified by:
getShutdownin interfaceSurefireExecutionParameters
-
isPrintSummary
public boolean isPrintSummary()- Specified by:
isPrintSummaryin interfaceSurefireExecutionParameters
-
setPrintSummary
public void setPrintSummary(boolean printSummary) - Specified by:
setPrintSummaryin interfaceSurefireExecutionParameters
-
getReportFormat
- Specified by:
getReportFormatin interfaceSurefireExecutionParameters
-
setReportFormat
- Specified by:
setReportFormatin interfaceSurefireExecutionParameters
-
isUseFile
public boolean isUseFile()- Specified by:
isUseFilein interfaceSurefireExecutionParameters
-
setUseFile
public void setUseFile(boolean useFile) - Specified by:
setUseFilein interfaceSurefireExecutionParameters
-
getDebugForkedProcess
- Specified by:
getDebugForkedProcessin interfaceSurefireExecutionParameters
-
setDebugForkedProcess
- Specified by:
setDebugForkedProcessin interfaceSurefireExecutionParameters
-
getForkedProcessTimeoutInSeconds
public int getForkedProcessTimeoutInSeconds()- Specified by:
getForkedProcessTimeoutInSecondsin interfaceSurefireExecutionParameters
-
setForkedProcessTimeoutInSeconds
public void setForkedProcessTimeoutInSeconds(int forkedProcessTimeoutInSeconds) - Specified by:
setForkedProcessTimeoutInSecondsin interfaceSurefireExecutionParameters
-
getForkedProcessExitTimeoutInSeconds
public int getForkedProcessExitTimeoutInSeconds()- Specified by:
getForkedProcessExitTimeoutInSecondsin interfaceSurefireExecutionParameters
-
setForkedProcessExitTimeoutInSeconds
public void setForkedProcessExitTimeoutInSeconds(int forkedProcessExitTimeoutInSeconds) - Specified by:
setForkedProcessExitTimeoutInSecondsin interfaceSurefireExecutionParameters
-
getParallelTestsTimeoutInSeconds
public double getParallelTestsTimeoutInSeconds()- Specified by:
getParallelTestsTimeoutInSecondsin interfaceSurefireExecutionParameters
-
setParallelTestsTimeoutInSeconds
public void setParallelTestsTimeoutInSeconds(double parallelTestsTimeoutInSeconds) - Specified by:
setParallelTestsTimeoutInSecondsin interfaceSurefireExecutionParameters
-
getParallelTestsTimeoutForcedInSeconds
public double getParallelTestsTimeoutForcedInSeconds()- Specified by:
getParallelTestsTimeoutForcedInSecondsin interfaceSurefireExecutionParameters
-
setParallelTestsTimeoutForcedInSeconds
public void setParallelTestsTimeoutForcedInSeconds(double parallelTestsTimeoutForcedInSeconds) - Specified by:
setParallelTestsTimeoutForcedInSecondsin interfaceSurefireExecutionParameters
-
setTest
- Specified by:
setTestin interfaceSurefireExecutionParameters
-
getIncludes
- Specified by:
getIncludesin interfaceSurefireExecutionParameters- Specified by:
getIncludesin classAbstractSurefireMojo
-
setIncludes
- Specified by:
setIncludesin interfaceSurefireExecutionParameters- Specified by:
setIncludesin classAbstractSurefireMojo
-
getSuiteXmlFiles
- Specified by:
getSuiteXmlFilesin classAbstractSurefireMojo
-
setSuiteXmlFiles
- Specified by:
setSuiteXmlFilesin classAbstractSurefireMojo
-
getRunOrder
- Specified by:
getRunOrderin classAbstractSurefireMojo
-
setRunOrder
- Specified by:
setRunOrderin classAbstractSurefireMojo
-
getIncludesFile
- Specified by:
getIncludesFilein classAbstractSurefireMojo
-
getExcludesFile
- Specified by:
getExcludesFilein classAbstractSurefireMojo
-
useModulePath
protected boolean useModulePath()- Specified by:
useModulePathin classAbstractSurefireMojo
-
setUseModulePath
protected void setUseModulePath(boolean useModulePath) - Specified by:
setUseModulePathin classAbstractSurefireMojo
-
suiteXmlFiles
Description copied from class:AbstractSurefireMojoCallsAbstractSurefireMojo.getSuiteXmlFiles()aslist. Never returns null.- Specified by:
suiteXmlFilesin classAbstractSurefireMojo- Returns:
- list of TestNG suite XML files provided by MOJO
-
hasSuiteXmlFiles
protected final boolean hasSuiteXmlFiles()- Specified by:
hasSuiteXmlFilesin classAbstractSurefireMojo- Returns:
trueifsuite-xml files arrayis not empty.
-
getExcludedEnvironmentVariables
- Specified by:
getExcludedEnvironmentVariablesin classAbstractSurefireMojo
-
setExcludedEnvironmentVariables
-
getEnableProcessChecker
- Specified by:
getEnableProcessCheckerin classAbstractSurefireMojo
-