Apache Commons Exec

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
107 0 0 8 92.5% 102.8 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% 50.60 s
org.apache.commons.exec 73 0 0 2 97.3% 52.08 s
org.apache.commons.exec.util 7 0 0 0 100% 0.045 s
org.apache.commons.exec.environment 6 0 0 0 100% 0.062 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.088 s
Exec44Test 1 0 0 0 100% 5.018 s
Exec62Test 1 0 0 1 0% 0.002 s
Exec34Test 2 0 0 0 100% 5.043 s
Exec60Test 1 0 0 1 0% 0.006 s
Exec57Test 2 0 0 1 50.0% 0.048 s
Exec65Test 4 0 0 0 100% 20.42 s
Exec33Test 1 0 0 0 100% 15.74 s
Exec41Test 2 0 0 0 100% 4.135 s
Exec49Test 2 0 0 0 100% 0.101 s

org.apache.commons.exec

- Class Tests Errors Failures Skipped Success Rate Time
LogOutputStreamTest 2 0 0 1 50.0% 0.096 s
DefaultExecutorTest 32 0 0 1 96.9% 41.23 s
StandAloneTest 3 0 0 0 100% 0.238 s
PumpStreamHandlerTest 1 0 0 0 100% 0.003 s
CommandLineTest 34 0 0 0 100% 0.206 s
TutorialTest 1 0 0 0 100% 10.31 s

org.apache.commons.exec.util

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

org.apache.commons.exec.environment

- Class Tests Errors Failures Skipped Success Rate Time
EnvironmentUtilsTest 6 0 0 0 100% 0.062 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.067 s

DefaultExecutorTest

testExecuteAsyncWithError 0.065 s
testExecuteAsyncNonExistingApplicationWithWatchdog 0.058 s
testExecute 0.016 s
testStdInHandling 0.061 s
testAddEnvironmentVariableEmbeddedQuote 0.028 s
testExecuteWithWorkingDirectory 0.018 s
testExecuteAsyncWithTooLateUserTermination 6.006 s
testExecuteWithNullOutErr 0.013 s
testExecuteWithArg 0.008 s
testExecuteAsync 0.052 s
testExecuteWithRedirectedStreams 0.021 s
testExecuteAsyncWithProcessDestroyer 2.060 s
testExecuteWithCustomExitValue1 0.011 s
testExecuteWithCustomExitValue2 0.011 s
testExecuteNonExistingApplicationWithWatchDog 0.008 s
testExecuteAsyncWithTimelyUserTermination 2.061 s
testExecuteWithSingleEnvironmentVariable 0.009 s
testExecuteWithComplexArguments 0.012 s
_testExecuteStability 0 s
- public void org.apache.commons.exec.DefaultExecutorTest._testExecuteStability() throws java.lang.Exception is @Disabled -
testExecuteWatchdogSync 20.03 s
testAddEnvironmentVariables 0.042 s
testExecuteWithError 0.020 s
testEnvironmentVariables 0.041 s
testExecuteWithFancyArg 0.031 s
testExecuteWatchdogVeryLongTimeout 0.018 s
testExecuteWithRedirectOutErr 0.125 s
testExecuteNonExistingApplication 0.085 s
testExecuteWithProcessDestroyer 0.018 s
testExecuteWithStdOutErr 0.018 s
testExecuteWatchdogAsync 10.06 s
testExecuteAsyncNonExistingApplication 0.059 s
testExecuteWithInvalidWorkingDirectory 0.009 s

Exec36Test

testExec36_1 0.036 s
testExec36_2 0.033 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.012 s

Exec62Test

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

StandAloneTest

testDefaultExecutorBuilder 0.115 s
testDefaultExecutor 0.061 s
testDefaultExecutorDefaultBuilder 0.057 s

Exec34Test

testExec34_1 0.007 s
testExec34_2 5.033 s

Exec60Test

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

MapUtilTest

testPrefixMap 0.005 s
testMergeMap 0.010 s
testCopyMap 0.002 s

StringUtilTest

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

Exec57Test

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

PumpStreamHandlerTest

testSetStopTimeout 0.001 s

CommandLineTest

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

Exec65Test

testExec65WithSudoUsingShellScript 11.22 s
testExec65WithSleepUsingShellScriptAndJDKOnly 3.038 s
testExec65WithSleepUsingShellScript 3.033 s
testExec65WitSleepUsingSleepCommandDirectly 3.098 s

EnvironmentUtilsTest

testToStringWithNullKey 0.004 s
testCaseInsensitiveVariableLookup 0.015 s
testGetProcEnvironment 0.004 s
testToStrings 0.003 s
testGetProcEnvironmentCaseInsensitiveLookup 0.001 s
testToStringWithNullValue 0.001 s

TutorialTest

testTutorialExample 10.30 s

Exec33Test

testExec33 15.73 s

Exec41Test

testExec41WithStreams 2.095 s
testExec41WithoutStreams 2.033 s

Exec49Test

testExec49_1 0.026 s
testExec49_2 0.070 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