Surefire Report

Summary


Tests Errors Failures Skipped Success Rate Time
187 0 0 0 100% 0.691

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

Package List


Package Tests Errors Failures Skipped Success Rate Time
org.apache.commons.cli.bug 13 0 0 0 100% 0.089
org.apache.commons.cli 174 0 0 0 100% 0.602

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

org.apache.commons.cli.bug

Class Tests Errors Failures Skipped Success Rate Time
BugCLI133Test 1 0 0 0 100% 0.001
BugCLI13Test 1 0 0 0 100% 0.004
BugCLI148Test 2 0 0 0 100% 0.003
BugCLI162Test 4 0 0 0 100% 0.021
BugCLI18Test 1 0 0 0 100% 0.003
BugCLI71Test 4 0 0 0 100% 0.057

org.apache.commons.cli

Class Tests Errors Failures Skipped Success Rate Time
ApplicationTest 4 0 0 0 100% 0.036
ArgumentIsOptionTest 3 0 0 0 100% 0.028
BasicParserTest 19 0 0 0 100% 0.041
BugsTest 12 0 0 0 100% 0.019
CommandLineTest 1 0 0 0 100% 0.002
GnuParserTest 19 0 0 0 100% 0.071
HelpFormatterTest 16 0 0 0 100% 0.026
OptionBuilderTest 9 0 0 0 100% 0.01
OptionGroupTest 12 0 0 0 100% 0.016
OptionsTest 9 0 0 0 100% 0.012
OptionTest 6 0 0 0 100% 0.057
ParseRequiredTest 5 0 0 0 100% 0.007
PatternOptionBuilderTest 9 0 0 0 100% 0.107
PosixParserTest 25 0 0 0 100% 0.035
UtilTest 2 0 0 0 100% 0.006
ValuesTest 7 0 0 0 100% 0.057
ValueTest 16 0 0 0 100% 0.072

Test Cases

ApplicationTest

testLs 0.003
testAnt 0.004
testGroovy 0.001
testMan 0.022

ArgumentIsOptionTest

testOptionAndOptionWithArgument 0.001
testOptionWithArgument 0
testOption 0

BasicParserTest

testPropertiesOption 0.017
testShortWithEqual 0
testShortWithoutEqual 0
testLongWithEqual 0
testLongWithEqualSingleDash 0
testSimpleShort 0.001
testSimpleLong 0.001
testMultiple 0.001
testMultipleWithLong 0.001
testUnrecognizedOption 0
testMissingArg 0
testDoubleDash 0
testSingleDash 0
testStopAtUnexpectedArg 0.001
testStopAtExpectedArg 0
testStopAtNonOptionShort 0
testStopAtNonOptionLong 0.002
testNegativeArgument 0.001
testArgumentStartingWithHyphen 0

BugCLI133Test

testOrder 0

BugCLI13Test

testCLI13 0.001

BugCLI148Test

testWorkaround1 0
testWorkaround2 0.001

BugCLI162Test

testInfiniteLoop 0.001
testPrintHelpLongLines 0.008
testLongLineChunking 0.007
testLongLineChunkingIndentIgnored 0.001

BugCLI18Test

testCLI18 0.001

BugCLI71Test

testBasic 0.014
testMistakenArgument 0.03
testLackOfError 0.003
testGetsDefaultIfOptional 0.001

BugsTest

test11457 0.001
test11458 0.001
test11680 0
test11456 0.001
test12210 0.001
test13425 0
test13666 0.002
test13935 0.001
test14786 0
test15046 0.001
test15648 0.001
test31148 0.001

CommandLineTest

testGetOptionProperties 0.001

GnuParserTest

testPropertiesOption 0.001
testShortWithEqual 0.001
testShortWithoutEqual 0
testLongWithEqual 0.001
testLongWithEqualSingleDash 0
testSimpleShort 0
testSimpleLong 0.028
testMultiple 0.001
testMultipleWithLong 0
testUnrecognizedOption 0.001
testMissingArg 0.001
testDoubleDash 0
testSingleDash 0.001
testStopAtUnexpectedArg 0.008
testStopAtExpectedArg 0
testStopAtNonOptionShort 0.001
testStopAtNonOptionLong 0
testNegativeArgument 0
testArgumentStartingWithHyphen 0

HelpFormatterTest

testFindWrapPos 0.001
testPrintWrapped 0.001
testPrintOptions 0.004
testPrintHelpWithEmptySyntax 0.001
testAutomaticUsage 0
testPrintUsage 0
testPrintSortedUsage 0.001
testPrintSortedUsageWithNullComparator 0
testPrintOptionGroupUsage 0
testPrintRequiredOptionGroupUsage 0
testPrintOptionWithEmptyArgNameUsage 0
testRtrim 0
testAccessors 0
testHeaderStartingWithLineSeparator 0.001
testOptionWithoutShortFormat 0.001
testOptionWithoutShortFormat2 0.002

OptionBuilderTest

testCompleteOption 0
testTwoCompleteOptions 0
testBaseOptionCharOpt 0
testBaseOptionStringOpt 0
testSpecialOptChars 0
testOptionArgNumbers 0.001
testIllegalOptions 0
testCreateIncompleteOption 0
testBuilderIsResettedAlways 0.001

OptionGroupTest

testSingleOptionFromGroup 0
testSingleOption 0
testTwoValidOptions 0.001
testSingleLongOption 0
testTwoValidLongOptions 0
testNoOptionsExtraArgs 0
testTwoOptionsFromGroup 0.002
testTwoLongOptionsFromGroup 0.001
testTwoOptionsFromDifferentGroup 0.001
testValidLongOnlyOptions 0.001
testToString 0.001
testGetNames 0

OptionsTest

testToString 0.001
testSimple 0
testDuplicateSimple 0
testLong 0
testDuplicateLong 0
testHelpOptions 0
testMissingOptionException 0
testMissingOptionsException 0
testGetOptionsGroups 0.003

OptionTest

testClear 0.025
testClone 0.001
testSubclass 0
testHasArgName 0.001
testHasArgs 0
testGetValue 0

ParseRequiredTest

testWithRequiredOption 0.001
testOptionAndRequiredOption 0.001
testMissingRequiredOption 0.001
testMissingRequiredOptions 0.001
testReuseOptionsTwice 0

PatternOptionBuilderTest

testSimplePattern 0.09
testEmptyPattern 0
testUntypedPattern 0.001
testNumberPattern 0.002
testClassPattern 0.001
testObjectPattern 0.003
testURLPattern 0.001
testExistingFilePattern 0
testRequiredOption 0.001

PosixParserTest

testShortWithEqual 0
testLongWithEqualSingleDash 0.001
testBursting 0.001
testUnrecognizedOptionWithBursting 0
testMissingArgWithBursting 0
testStopBursting 0.001
testStopBursting2 0.001
testLongOptionWithShort 0.001
testPropertiesOption 0.002
testShortWithoutEqual 0
testLongWithEqual 0.001
testSimpleShort 0.001
testSimpleLong 0
testMultiple 0.001
testMultipleWithLong 0.001
testUnrecognizedOption 0
testMissingArg 0.001
testDoubleDash 0.001
testSingleDash 0.001
testStopAtUnexpectedArg 0
testStopAtExpectedArg 0.001
testStopAtNonOptionShort 0
testStopAtNonOptionLong 0
testNegativeArgument 0
testArgumentStartingWithHyphen 0

UtilTest

testStripLeadingHyphens 0
testStripLeadingAndTrailingQuotes 0

ValuesTest

testShortArgs 0.003
testShortArgsWithValue 0.002
testMultipleArgValues 0.006
testTwoArgValues 0.003
testComplexValues 0.029
testExtraArgs 0.002
testCharSeparator 0.005

ValueTest

testShortNoArg 0.001
testShortWithArg 0.001
testLongNoArg 0.001
testLongWithArg 0.001
testShortOptionalArgNoValue 0.002
testShortOptionalArgValue 0.001
testLongOptionalNoValue 0.001
testLongOptionalArgValue 0.002
testShortOptionalArgValues 0.003
testLongOptionalArgValues 0.001
testShortOptionalNArgValues 0.002
testLongOptionalNArgValues 0.001
testPropertyOptionSingularValue 0.004
testPropertyOptionFlags 0.014
testPropertyOptionMultipleValues 0.001
testPropertyOverrideValues 0.002