Apache Commons logo Commons Exec

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
129 0 0 8 93.8% 84.88 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 82 0 0 2 97.6% 50.95 s
org.apache.commons.exec.launcher 12 0 0 0 100% 0.041 s
org.apache.commons.exec.util 8 0 0 0 100% 0.005 s
org.apache.commons.exec.environment 6 0 0 0 100% 0.010 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.032 s
Exec44Test 1 0 0 0 100% 5.006 s
Exec62Test 1 0 0 1 0% 0 s
Exec34Test 2 0 0 0 100% 5.055 s
Exec60Test 1 0 0 1 0% 0.002 s
Exec57Test 2 0 0 1 50.0% 0.016 s
Exec65Test 4 0 0 0 100% 13.68 s
Exec33Test 1 0 0 0 100% 5.946 s
Exec41Test 2 0 0 0 100% 4.042 s
Exec49Test 2 0 0 0 100% 0.086 s

org.apache.commons.exec

- Class Tests Errors Failures Skipped Success Rate Time
LogOutputStreamTest 2 0 0 1 50.0% 0.015 s
DefaultExecutorTest 32 0 0 1 96.9% 40.71 s
ExecuteWatchdogTest 1 0 0 0 100% 0 s
StandAloneTest 5 0 0 0 100% 0.071 s
OSTest 3 0 0 0 100% 0.002 s
WatchdogTest 1 0 0 0 100% 0.001 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.14 s
TimeoutObserverTest 2 0 0 0 100% 0.001 s

org.apache.commons.exec.launcher

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

org.apache.commons.exec.util

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

org.apache.commons.exec.environment

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

WinNTCommandLauncherTest

testIsFailureZero 0 s
testIsFailure 0.001 s

DefaultExecutorTest

testExecuteAsyncWithError 0.058 s
testExecuteAsyncNonExistingApplicationWithWatchdog 0.057 s
testExecute 0.011 s
testStdInHandling 0.056 s
testAddEnvironmentVariableEmbeddedQuote 0.009 s
testExecuteWithWorkingDirectory 0.007 s
testExecuteAsyncWithTooLateUserTermination 6.006 s
testExecuteWithNullOutErr 0.013 s
testExecuteWithArg 0.008 s
testExecuteAsync 0.053 s
testExecuteWithRedirectedStreams 0.008 s
testExecuteAsyncWithProcessDestroyer 2.060 s
testExecuteWithCustomExitValue1 0.022 s
testExecuteWithCustomExitValue2 0.011 s
testExecuteNonExistingApplicationWithWatchDog 0.005 s
testExecuteAsyncWithTimelyUserTermination 2.065 s
testExecuteWithSingleEnvironmentVariable 0.029 s
testExecuteWithComplexArguments 0.013 s
testExecuteWatchdogSync 20.01 s
testAddEnvironmentVariables 0.030 s
testExecuteWithError 0.010 s
testEnvironmentVariables 0.010 s
testExecuteWithFancyArg 0.006 s
testExecuteWatchdogVeryLongTimeout 0.006 s
testExecuteWithRedirectOutErr 0.006 s
testExecuteNonExistingApplication 0.003 s
testExecuteWithProcessDestroyer 0.004 s
testExecuteWithStdOutErr 0.005 s
testExecuteStability 0 s
- void org.apache.commons.exec.DefaultExecutorTest.testExecuteStability() throws java.lang.Exception is @Disabled -
testExecuteWatchdogAsync 10.05 s
testExecuteAsyncNonExistingApplication 0.054 s
testExecuteWithInvalidWorkingDirectory 0.002 s

VmsCommandLauncherTest

testIsFailureZero 0.001 s
testIsFailure 0 s
testCreateCommandFile 0.016 s

Exec36Test

testExec36Part1 0.021 s
testExec36Part2 0.008 s
testExec36Part4 0 s
- void org.apache.commons.exec.issues.Exec36Test.testExec36Part4() throws java.lang.Exception is @Disabled -
testExec36Part5 0 s
- void org.apache.commons.exec.issues.Exec36Test.testExec36Part5() is @Disabled -
testExec36Part6 0 s
- void org.apache.commons.exec.issues.Exec36Test.testExec36Part6() is @Disabled -

Exec44Test

testExec44 5.004 s

Exec62Test

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

ExecuteWatchdogTest

testBuilder 0 s

StandAloneTest

testDefaultExecutorBuilderFromFile 0.028 s
testDefaultExecutorBuilderFromPath 0.012 s
testDefaultExecutorDefaultBuilder 0.010 s
testDefaultExecutorFromFile 0.010 s
testDefaultExecutorFromPath 0.008 s

Exec34Test

testExec34Part1 0.003 s
testExec34Part2 5.051 s

Exec60Test

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

CommandLauncherImplTest

testIsFailureZero 0 s
testIsFailure 0.001 s

MapUtilTest

testPrefixMap 0 s
testMergeMap 0.002 s
testCopyMap 0 s

StringUtilTest

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

OSTest

testIsArchMacOs 0.001 s
testIsVersion 0 s
testIsArch 0.001 s

WatchdogTest

testBuilder 0.001 s

Exec57Test

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

PumpStreamHandlerTest

testSetStopTimeout 0.001 s

Java13CommandLauncherTest

testIsFailureZero 0.001 s
testIsFailure 0.001 s

CommandLineTest

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

Exec65Test

testExec65WithSudoUsingShellScript 4.628 s
testExec65WithSleepUsingShellScriptAndJDKOnly 3.016 s
testExec65WithSleepUsingShellScript 3.019 s
testExec65WitSleepUsingSleepCommandDirectly 3.013 s

CommandLauncherFactoryTest

testCreateVMLauncher 0.001 s

EnvironmentUtilsTest

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

TutorialTest

testTutorialExample 10.14 s

Exec33Test

testExec33 5.944 s

Exec41Test

testExec41WithStreams 2.019 s
testExec41WithoutStreams 2.020 s

TimeoutObserverTest

testAccept 0 s
testTimeoutOccurred 0 s

Exec49Test

testExec49Part1 0.024 s
testExec49Part2 0.059 s

OS2CommandLauncherTest

testIsFailureZero 0.009 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: void org.apache.commons.exec.DefaultExecutorTest.testExecuteStability() throws java.lang.Exception is @Disabled
testExec36Part4
- skipped: void org.apache.commons.exec.issues.Exec36Test.testExec36Part4() throws java.lang.Exception is @Disabled
testExec36Part5
- skipped: void org.apache.commons.exec.issues.Exec36Test.testExec36Part5() is @Disabled
testExec36Part6
- skipped: void org.apache.commons.exec.issues.Exec36Test.testExec36Part6() is @Disabled
testMe
- skipped: Test behaves differently between macOS X and Linux - don't know why
testExec60
- skipped: The test is fragile and might fail out of the blue
testExecutionOfBackgroundProcess
- skipped: Broken for Unix-based systems