Apache Commons logo Commons Exec

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
121 0 0 8 93.4% 84.90 s

Note: failures are anticipated and checked for with assertions while errors are unanticipated.


Package List

[Summary] [Package List] [Test Cases]


Package Tests Errors Failures Skipped Success Rate Time
org.apache.commons.exec.issues 21 0 0 6 71.4% 33.87 s
org.apache.commons.exec 75 0 0 2 97.3% 50.97 s
org.apache.commons.exec.launcher 12 0 0 0 100% 0.040 s
org.apache.commons.exec.util 7 0 0 0 100% 0.004 s
org.apache.commons.exec.environment 6 0 0 0 100% 0.008 s

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

org.apache.commons.exec.issues

- Class Tests Errors Failures Skipped Success Rate Time
Exec36Test 5 0 0 3 40.0% 0.041 s
Exec44Test 1 0 0 0 100% 5.011 s
Exec62Test 1 0 0 1 0% 0 s
Exec34Test 2 0 0 0 100% 5.052 s
Exec60Test 1 0 0 1 0% 0.002 s
Exec57Test 2 0 0 1 50.0% 0.034 s
Exec65Test 4 0 0 0 100% 13.67 s
Exec33Test 1 0 0 0 100% 5.938 s
Exec41Test 2 0 0 0 100% 4.046 s
Exec49Test 2 0 0 0 100% 0.083 s

org.apache.commons.exec

- Class Tests Errors Failures Skipped Success Rate Time
LogOutputStreamTest 2 0 0 1 50.0% 0.017 s
DefaultExecutorTest 32 0 0 1 96.9% 40.71 s
StandAloneTest 5 0 0 0 100% 0.073 s
PumpStreamHandlerTest 1 0 0 0 100% 0.001 s
CommandLineTest 34 0 0 0 100% 0.018 s
TutorialTest 1 0 0 0 100% 10.15 s

org.apache.commons.exec.launcher

- Class Tests Errors Failures Skipped Success Rate Time
WinNTCommandLauncherTest 2 0 0 0 100% 0.001 s
VmsCommandLauncherTest 3 0 0 0 100% 0.016 s
CommandLauncherImplTest 2 0 0 0 100% 0.001 s
Java13CommandLauncherTest 2 0 0 0 100% 0.001 s
CommandLauncherFactoryTest 1 0 0 0 100% 0.001 s
OS2CommandLauncherTest 2 0 0 0 100% 0.020 s

org.apache.commons.exec.util

- Class Tests Errors Failures Skipped Success Rate Time
MapUtilTest 3 0 0 0 100% 0.003 s
StringUtilTest 4 0 0 0 100% 0.001 s

org.apache.commons.exec.environment

- Class Tests Errors Failures Skipped Success Rate Time
EnvironmentUtilsTest 6 0 0 0 100% 0.008 s

Test Cases

[Summary] [Package List] [Test Cases]

LogOutputStreamTest

testStdoutWithUTF8Characters 0 s
- The file utf8CharacterScript is missing from the repository and is not in its history -
testStdout 0.012 s

WinNTCommandLauncherTest

testIsFailureZero 0 s
testIsFailure 0 s

DefaultExecutorTest

testExecuteAsyncWithError 0.056 s
testExecuteAsyncNonExistingApplicationWithWatchdog 0.056 s
testExecute 0.011 s
testStdInHandling 0.056 s
testAddEnvironmentVariableEmbeddedQuote 0.008 s
testExecuteWithWorkingDirectory 0.005 s
testExecuteAsyncWithTooLateUserTermination 6.008 s
testExecuteWithNullOutErr 0.013 s
testExecuteWithArg 0.007 s
testExecuteAsync 0.056 s
testExecuteWithRedirectedStreams 0.016 s
testExecuteAsyncWithProcessDestroyer 2.062 s
testExecuteWithCustomExitValue1 0.015 s
testExecuteWithCustomExitValue2 0.008 s
testExecuteNonExistingApplicationWithWatchDog 0.003 s
testExecuteAsyncWithTimelyUserTermination 2.062 s
testExecuteWithSingleEnvironmentVariable 0.014 s
testExecuteWithComplexArguments 0.013 s
_testExecuteStability 0 s
- public void org.apache.commons.exec.DefaultExecutorTest._testExecuteStability() throws java.lang.Exception is @Disabled -
testExecuteWatchdogSync 20.02 s
testAddEnvironmentVariables 0.029 s
testExecuteWithError 0.009 s
testEnvironmentVariables 0.009 s
testExecuteWithFancyArg 0.006 s
testExecuteWatchdogVeryLongTimeout 0.005 s
testExecuteWithRedirectOutErr 0.006 s
testExecuteNonExistingApplication 0.003 s
testExecuteWithProcessDestroyer 0.005 s
testExecuteWithStdOutErr 0.004 s
testExecuteWatchdogAsync 10.06 s
testExecuteAsyncNonExistingApplication 0.058 s
testExecuteWithInvalidWorkingDirectory 0.002 s

VmsCommandLauncherTest

testIsFailureZero 0 s
testIsFailure 0.001 s
testCreateCommandFile 0.015 s

Exec36Test

testExec36_1 0.029 s
testExec36_2 0.008 s
_testExec36_4 0 s
- public void org.apache.commons.exec.issues.Exec36Test._testExec36_4() throws java.lang.Exception is @Disabled -
_testExec36_5 0 s
- public void org.apache.commons.exec.issues.Exec36Test._testExec36_5() is @Disabled -
_testExec36_6 0 s
- public void org.apache.commons.exec.issues.Exec36Test._testExec36_6() is @Disabled -

Exec44Test

testExec44 5.008 s

Exec62Test

testMe 0 s
- Test behaves differently between macOS X and Linux - don't know why -

StandAloneTest

testDefaultExecutorBuilderFromFile 0.032 s
testDefaultExecutorBuilderFromPath 0.012 s
testDefaultExecutorDefaultBuilder 0.011 s
testDefaultExecutorFromFile 0.009 s
testDefaultExecutorFromPath 0.008 s

Exec34Test

testExec34_1 0.005 s
testExec34_2 5.047 s

Exec60Test

testExec_60 0 s
- The test is fragile and might fail out of the blue -

CommandLauncherImplTest

testIsFailureZero 0.001 s
testIsFailure 0 s

MapUtilTest

testPrefixMap 0.001 s
testMergeMap 0.002 s
testCopyMap 0 s

StringUtilTest

testIncompleteSubstitution 0 s
testErroneousTemplate 0 s
testDefaultStringSubstitution 0.001 s
testNoStringSubstitution 0 s

Exec57Test

testExecutionOfBackgroundProcess 0 s
- Broken for Unix-based systems -
testExecutionOfDetachedProcess 0.032 s

PumpStreamHandlerTest

testSetStopTimeout 0.001 s

Java13CommandLauncherTest

testIsFailureZero 0 s
testIsFailure 0.001 s

CommandLineTest

testParseCommandLineWithQuotes 0.003 s
testAddArgumentWithQuotesAround 0 s
testParseCommandLineWithNull 0.001 s
testCopyConstructor 0.001 s
testParseComplexCommandLine1 0 s
testParseComplexCommandLine2 0 s
testComplexAddArgument 0 s
testAddArguments 0 s
testToString 0 s
testAddArgumentWithQuote 0.001 s
testAddArgumentWithSpace 0 s
testAddArgumentsArray 0.001 s
testAddArgumentsWithQuotes 0 s
testParseRealLifeCommandLine_1 0 s
testAddArgumentsWithQuotesAndSpaces 0 s
testExecutable 0 s
testParseCommandLineWithUnevenQuotes 0.001 s
testAddNullArgument 0 s
testAddTwoArguments 0 s
testToStringTroubleshooting 0 s
testAddArgumentsArrayNull 0.001 s
testAddArgument 0 s
testExecutableWhitespaceString 0 s
testParseCommandLineWithOnlyWhitespace 0.001 s
testParseCommandLine 0 s
testExecutableZeroLengthString 0 s
testAddArgumentWithSingleQuote 0 s
testComplexAddArguments1 0 s
testComplexAddArguments2 0 s
testAddArgumentWithBothQuotes 0 s
testCommandLineParsingWithExpansion1 0 s
testCommandLineParsingWithExpansion2 0 s
testCommandLineParsingWithExpansion3 0 s
testNullExecutable 0.001 s

Exec65Test

testExec65WithSudoUsingShellScript 4.614 s
testExec65WithSleepUsingShellScriptAndJDKOnly 3.015 s
testExec65WithSleepUsingShellScript 3.015 s
testExec65WitSleepUsingSleepCommandDirectly 3.016 s

CommandLauncherFactoryTest

testCreateVMLauncher 0.001 s

EnvironmentUtilsTest

testToStringWithNullKey 0.001 s
testCaseInsensitiveVariableLookup 0 s
testGetProcEnvironment 0.001 s
testToStrings 0.001 s
testGetProcEnvironmentCaseInsensitiveLookup 0.001 s
testToStringWithNullValue 0.001 s

TutorialTest

testTutorialExample 10.15 s

Exec33Test

testExec33 5.935 s

Exec41Test

testExec41WithStreams 2.023 s
testExec41WithoutStreams 2.018 s

Exec49Test

testExec49_1 0.015 s
testExec49_2 0.065 s

OS2CommandLauncherTest

testIsFailureZero 0.011 s
testIsFailure 0 s

Failure Details

[Summary] [Package List] [Test Cases]


testStdoutWithUTF8Characters
- skipped: The file utf8CharacterScript is missing from the repository and is not in its history
_testExecuteStability
- skipped: public void org.apache.commons.exec.DefaultExecutorTest._testExecuteStability() throws java.lang.Exception is @Disabled
_testExec36_4
- skipped: public void org.apache.commons.exec.issues.Exec36Test._testExec36_4() throws java.lang.Exception is @Disabled
_testExec36_5
- skipped: public void org.apache.commons.exec.issues.Exec36Test._testExec36_5() is @Disabled
_testExec36_6
- skipped: public void org.apache.commons.exec.issues.Exec36Test._testExec36_6() is @Disabled
testMe
- skipped: Test behaves differently between macOS X and Linux - don't know why
testExec_60
- skipped: The test is fragile and might fail out of the blue
testExecutionOfBackgroundProcess
- skipped: Broken for Unix-based systems