Apache Commons logo Commons CLI

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
389 0 0 54 86.118% 0.528

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.cli 357 0 0 54 84.874% 0.497
org.apache.commons.cli.bug 32 0 0 0 100% 0.031

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

org.apache.commons.cli

Class Tests Errors Failures Skipped Success Rate Time
ApplicationTest 5 0 0 0 100% 0.191
ArgumentIsOptionTest 3 0 0 0 100% 0
BasicParserTest 58 0 0 24 58.621% 0.025
CommandLineTest 8 0 0 0 100% 0.013
DefaultParserTest 58 0 0 0 100% 0.022
GnuParserTest 58 0 0 21 63.793% 0.043
HelpFormatterTest 25 0 0 0 100% 0.015
OptionBuilderTest 9 0 0 0 100% 0.003
OptionGroupTest 13 0 0 0 100% 0.005
OptionsTest 10 0 0 0 100% 0.004
OptionTest 10 0 0 0 100% 0.004
PatternOptionBuilderTest 9 0 0 0 100% 0.026
PosixParserTest 58 0 0 9 84.483% 0.016
UtilTest 2 0 0 0 100% 0.002
ValuesTest 7 0 0 0 100% 0.066
ValueTest 24 0 0 0 100% 0.062

org.apache.commons.cli.bug

Class Tests Errors Failures Skipped Success Rate Time
BugCLI133Test 1 0 0 0 100% 0
BugCLI13Test 1 0 0 0 100% 0.001
BugCLI148Test 2 0 0 0 100% 0
BugCLI162Test 4 0 0 0 100% 0.005
BugCLI18Test 1 0 0 0 100% 0.002
BugCLI252Test 2 0 0 0 100% 0.008
BugCLI265Test 3 0 0 0 100% 0.001
BugCLI266Test 2 0 0 0 100% 0.001
BugCLI71Test 4 0 0 0 100% 0.002
BugsTest 12 0 0 0 100% 0.011

Test Cases

[Summary] [Package List] [Test Cases]

ApplicationTest

testAnt 0.01
testMan 0.006
testNLT 0.001
testLs 0
testGroovy 0

ArgumentIsOptionTest

testOptionWithArgument 0
testOptionAndOptionWithArgument 0
testOption 0

BasicParserTest

testStopBursting2 0
not supported by the BasicParser
testShortWithoutEqual 0
not supported by the BasicParser
testAmbiguousLongWithoutEqualSingleDash 0
not supported by the BasicParser
testMissingArgWithBursting 0
not supported by the BasicParser
testStopBursting 0
not supported by the BasicParser
testPartialLongOptionSingleDash 0
not supported by the BasicParser
testLongWithoutEqualSingleDash 0
not supported by the BasicParser
testUnrecognizedOptionWithBursting 0
not supported by the BasicParser
testBursting 0
not supported by the BasicParser
testAmbiguousPartialLongOption1 0
not supported by the BasicParser
testAmbiguousPartialLongOption2 0
not supported by the BasicParser
testAmbiguousPartialLongOption3 0
not supported by the BasicParser
testAmbiguousPartialLongOption4 0
not supported by the BasicParser
testShortWithEqual 0
not supported by the BasicParser
testNegativeOption 0
not supported by the BasicParser (CLI-184)
testLongWithEqualDoubleDash 0
not supported by the BasicParser
testLongWithEqualSingleDash 0
not supported by the BasicParser
testUnambiguousPartialLongOption1 0
not supported by the BasicParser
testUnambiguousPartialLongOption2 0
not supported by the BasicParser
testUnambiguousPartialLongOption3 0
not supported by the BasicParser
testUnambiguousPartialLongOption4 0
not supported by the BasicParser
testPropertiesOption1 0
not supported by the BasicParser
testPropertiesOption2 0
not supported by the BasicParser
testDoubleDash2 0
not supported by the BasicParser
testSimpleLong 0.002
testSimpleShort 0
testMissingRequiredOption 0.001
testReuseOptionsTwice 0.001
testMissingRequiredGroup 0.001
testOptionGroupLong 0
testMissingRequiredOptions 0
testShortWithUnexpectedArgument 0
testPropertyOverrideValues 0
testStopAtNonOptionLong 0.001
testNegativeArgument 0
testStopAtUnexpectedArg 0
testOptionGroup 0
testLongWithoutEqualDoubleDash 0
testPropertyOptionSingularValue 0
testPropertyOptionMultipleValues 0
testMissingArg 0.001
testPropertyOptionFlags 0
testPropertyOptionGroup 0.001
testMultipleWithLong 0
testUnrecognizedOption 0
testPropertyOptionUnexpected 0
testSingleDash 0
testWithRequiredOption 0
testUnlimitedArgs 0
testPropertyOptionRequired 0.001
testOptionAndRequiredOption 0
testLongWithUnexpectedArgument1 0
testLongWithUnexpectedArgument2 0
testStopAtNonOptionShort 0
testMultiple 0.001
testArgumentStartingWithHyphen 0
testDoubleDash1 0
testStopAtExpectedArg 0

BugCLI133Test

testOrder 0

BugCLI13Test

testCLI13 0

BugCLI148Test

testWorkaround1 0
testWorkaround2 0

BugCLI162Test

testInfiniteLoop 0.002
testLongLineChunkingIndentIgnored 0
testLongLineChunking 0
testPrintHelpLongLines 0.002

BugCLI18Test

testCLI18 0.001

BugCLI252Test

testAmbiquousOptionName 0.008
testExactOptionNameMatch 0

BugCLI265Test

shouldParseShortOptionWithValue 0.001
shouldParseShortOptionWithoutValue 0
shouldParseConcatenatedShortOptions 0

BugCLI266Test

testOptionComparatorInsertedOrder 0.001
testOptionComparatorDefaultOrder 0

BugCLI71Test

testBasic 0
testLackOfError 0
testMistakenArgument 0
testGetsDefaultIfOptional 0

BugsTest

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

CommandLineTest

testGetParsedOptionValue 0.003
testGetParsedOptionValueWithOption 0.001
testGetOptions 0
testNullhOption 0
testBuilder 0.002
testGetOptionProperties 0
testGetOptionPropertiesWithOption 0.001
testGetParsedOptionValueWithChar 0

DefaultParserTest

testSimpleLong 0
testSimpleShort 0
testStopBursting2 0
testMissingRequiredOption 0
testShortWithoutEqual 0
testReuseOptionsTwice 0
testMissingRequiredGroup 0
testOptionGroupLong 0
testAmbiguousLongWithoutEqualSingleDash 0
testMissingArgWithBursting 0
testMissingRequiredOptions 0
testShortWithUnexpectedArgument 0
testPropertyOverrideValues 0
testStopAtNonOptionLong 0
testNegativeArgument 0
testStopBursting 0
testStopAtUnexpectedArg 0
testPartialLongOptionSingleDash 0
testOptionGroup 0
testLongWithoutEqualDoubleDash 0
testLongWithoutEqualSingleDash 0
testPropertyOptionSingularValue 0.001
testPropertyOptionMultipleValues 0
testMissingArg 0
testPropertyOptionFlags 0
testPropertyOptionGroup 0
testUnrecognizedOptionWithBursting 0
testMultipleWithLong 0
testUnrecognizedOption 0
testBursting 0
testAmbiguousPartialLongOption1 0.001
testAmbiguousPartialLongOption2 0
testAmbiguousPartialLongOption3 0
testAmbiguousPartialLongOption4 0
testPropertyOptionUnexpected 0
testSingleDash 0.001
testShortWithEqual 0
testWithRequiredOption 0
testUnlimitedArgs 0
testNegativeOption 0.001
testPropertyOptionRequired 0
testOptionAndRequiredOption 0
testLongWithEqualDoubleDash 0
testLongWithUnexpectedArgument1 0.001
testLongWithUnexpectedArgument2 0
testStopAtNonOptionShort 0
testLongWithEqualSingleDash 0
testUnambiguousPartialLongOption1 0
testUnambiguousPartialLongOption2 0
testUnambiguousPartialLongOption3 0.001
testUnambiguousPartialLongOption4 0
testMultiple 0
testArgumentStartingWithHyphen 0
testPropertiesOption1 0
testPropertiesOption2 0.001
testDoubleDash1 0
testDoubleDash2 0
testStopAtExpectedArg 0.001

GnuParserTest

testStopBursting2 0
not supported by the GnuParser
testAmbiguousLongWithoutEqualSingleDash 0
not supported by the GnuParser
testMissingArgWithBursting 0
not supported by the GnuParser
testShortWithUnexpectedArgument 0
not supported by the GnuParser
testStopBursting 0
not supported by the GnuParser
testPartialLongOptionSingleDash 0
not supported by the GnuParser
testLongWithoutEqualSingleDash 0
not supported by the GnuParser
testUnrecognizedOptionWithBursting 0
not supported by the GnuParser
testBursting 0
not supported by the GnuParser
testAmbiguousPartialLongOption1 0
not supported by the GnuParser
testAmbiguousPartialLongOption2 0
not supported by the GnuParser
testAmbiguousPartialLongOption3 0
not supported by the GnuParser
testAmbiguousPartialLongOption4 0
not supported by the GnuParser
testNegativeOption 0
not supported by the GnuParser (CLI-184)
testLongWithUnexpectedArgument1 0
not supported by the GnuParser
testLongWithUnexpectedArgument2 0
not supported by the GnuParser
testUnambiguousPartialLongOption1 0
not supported by the GnuParser
testUnambiguousPartialLongOption2 0
not supported by the GnuParser
testUnambiguousPartialLongOption3 0
not supported by the GnuParser
testUnambiguousPartialLongOption4 0
not supported by the GnuParser
testDoubleDash2 0
not supported by the GnuParser
testSimpleLong 0.001
testSimpleShort 0
testMissingRequiredOption 0
testShortWithoutEqual 0.001
testReuseOptionsTwice 0
testMissingRequiredGroup 0
testOptionGroupLong 0
testMissingRequiredOptions 0
testPropertyOverrideValues 0.001
testStopAtNonOptionLong 0
testNegativeArgument 0
testStopAtUnexpectedArg 0
testOptionGroup 0
testLongWithoutEqualDoubleDash 0
testPropertyOptionSingularValue 0
testPropertyOptionMultipleValues 0
testMissingArg 0.001
testPropertyOptionFlags 0.001
testPropertyOptionGroup 0.002
testMultipleWithLong 0
testUnrecognizedOption 0
testPropertyOptionUnexpected 0
testSingleDash 0
testShortWithEqual 0
testWithRequiredOption 0
testUnlimitedArgs 0
testPropertyOptionRequired 0
testOptionAndRequiredOption 0
testLongWithEqualDoubleDash 0
testStopAtNonOptionShort 0
testLongWithEqualSingleDash 0
testMultiple 0
testArgumentStartingWithHyphen 0
testPropertiesOption1 0
testPropertiesOption2 0.001
testDoubleDash1 0
testStopAtExpectedArg 0

HelpFormatterTest

testUsageWithLongOptSeparator 0.001
testRenderWrappedTextSingleLine 0
testIndentedHeaderAndFooter 0
testPrintSortedUsageWithNullComparator 0
testAccessors 0
testRtrim 0
testPrintRequiredOptionGroupUsage 0
testHelpWithLongOptSeparator 0
testRenderWrappedTextSingleLinePadded 0
testRenderWrappedTextMultiLine 0
testPrintUsage 0
testPrintSortedUsage 0.003
testPrintHelpWithEmptySyntax 0
testPrintOptions 0.001
testAutomaticUsage 0
testDefaultArgName 0
testHeaderStartingWithLineSeparator 0.001
testRenderWrappedTextWordCut 0
testOptionWithoutShortFormat 0.001
testRenderWrappedTextMultiLinePadded 0
testPrintOptionGroupUsage 0
testPrintOptionWithEmptyArgNameUsage 0
testRenderWrappedTextSingleLinePadded2 0.001
testOptionWithoutShortFormat2 0.001
testFindWrapPos 0

OptionBuilderTest

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

OptionGroupTest

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

OptionsTest

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

OptionTest

testGetValue 0
testSubclass 0.001
testClear 0
testClone 0
testBuilderMethods 0
testHasArgs 0
testHasArgName 0
testHashCode 0
testBuilderInsufficientParams1 0
testBuilderInsufficientParams2 0

PatternOptionBuilderTest

testSimplePattern 0.024
testExistingFilePattern 0
testURLPattern 0.002
testEmptyPattern 0
testClassPattern 0
testRequiredOption 0
testNumberPattern 0
testUntypedPattern 0
testObjectPattern 0

PosixParserTest

testAmbiguousLongWithoutEqualSingleDash 0
not supported by the PosixParser
testLongWithoutEqualSingleDash 0
not supported by the PosixParser
testAmbiguousPartialLongOption4 0
not supported by the PosixParser
testShortWithEqual 0
not supported by the PosixParser
testNegativeOption 0
not supported by the PosixParser (CLI-184)
testLongWithUnexpectedArgument1 0
not supported by the PosixParser
testLongWithEqualSingleDash 0
not supported by the PosixParser
testUnambiguousPartialLongOption4 0
not supported by the PosixParser
testDoubleDash2 0
not supported by the PosixParser
testSimpleLong 0
testSimpleShort 0
testStopBursting2 0
testMissingRequiredOption 0
testShortWithoutEqual 0
testReuseOptionsTwice 0
testMissingRequiredGroup 0
testOptionGroupLong 0
testMissingArgWithBursting 0
testMissingRequiredOptions 0
testShortWithUnexpectedArgument 0
testPropertyOverrideValues 0
testStopAtNonOptionLong 0
testNegativeArgument 0
testStopBursting 0
testStopAtUnexpectedArg 0.003
testPartialLongOptionSingleDash 0
testOptionGroup 0
testLongWithoutEqualDoubleDash 0
testPropertyOptionSingularValue 0
testPropertyOptionMultipleValues 0
testMissingArg 0
testPropertyOptionFlags 0
testPropertyOptionGroup 0
testUnrecognizedOptionWithBursting 0
testMultipleWithLong 0
testUnrecognizedOption 0
testBursting 0
testAmbiguousPartialLongOption1 0
testAmbiguousPartialLongOption2 0
testAmbiguousPartialLongOption3 0
testPropertyOptionUnexpected 0.002
testSingleDash 0
testWithRequiredOption 0.003
testUnlimitedArgs 0
testPropertyOptionRequired 0
testOptionAndRequiredOption 0
testLongWithEqualDoubleDash 0
testLongWithUnexpectedArgument2 0
testStopAtNonOptionShort 0
testUnambiguousPartialLongOption1 0
testUnambiguousPartialLongOption2 0
testUnambiguousPartialLongOption3 0
testMultiple 0
testArgumentStartingWithHyphen 0
testPropertiesOption1 0
testPropertiesOption2 0
testDoubleDash1 0
testStopAtExpectedArg 0

UtilTest

testStripLeadingAndTrailingQuotes 0
testStripLeadingHyphens 0

ValuesTest

testTwoArgValues 0.006
testShortArgs 0.001
testCharSeparator 0.025
testExtraArgs 0.002
testShortArgsWithValue 0.009
testComplexValues 0
testMultipleArgValues 0

ValueTest

testLongOptionalArgValuesWithOption 0
testShortOptionalNArgValuesWithOption 0
testShortOptionalArgValues 0
testShortOptionalArgValuesWithOption 0.001
testShortOptionalArgValueWithOption 0.002
testLongOptionalArgValue 0
testShortOptionalArgNoValue 0
testShortNoArgWithOption 0
testLongWithArg 0
testLongOptionalNArgValuesWithOption 0.001
testLongOptionalNArgValues 0.002
testShortWithArgWithOption 0
testShortWithArg 0
testLongOptionalArgValueWithOption 0
testLongOptionalArgValues 0
testShortOptionalNArgValues 0
testLongNoArgWithOption 0.015
testLongOptionalNoValueWithOption 0
testLongNoArg 0.033
testShortNoArg 0
testLongOptionalNoValue 0
testShortOptionalArgValue 0
testShortOptionalArgNoValueWithOption 0
testLongWithArgWithOption 0

Failure Details

[Summary] [Package List] [Test Cases]


testStopBursting2
skipped: not supported by the BasicParser
testShortWithoutEqual
skipped: not supported by the BasicParser
testAmbiguousLongWithoutEqualSingleDash
skipped: not supported by the BasicParser
testMissingArgWithBursting
skipped: not supported by the BasicParser
testStopBursting
skipped: not supported by the BasicParser
testPartialLongOptionSingleDash
skipped: not supported by the BasicParser
testLongWithoutEqualSingleDash
skipped: not supported by the BasicParser
testUnrecognizedOptionWithBursting
skipped: not supported by the BasicParser
testBursting
skipped: not supported by the BasicParser
testAmbiguousPartialLongOption1
skipped: not supported by the BasicParser
testAmbiguousPartialLongOption2
skipped: not supported by the BasicParser
testAmbiguousPartialLongOption3
skipped: not supported by the BasicParser
testAmbiguousPartialLongOption4
skipped: not supported by the BasicParser
testShortWithEqual
skipped: not supported by the BasicParser
testNegativeOption
skipped: not supported by the BasicParser (CLI-184)
testLongWithEqualDoubleDash
skipped: not supported by the BasicParser
testLongWithEqualSingleDash
skipped: not supported by the BasicParser
testUnambiguousPartialLongOption1
skipped: not supported by the BasicParser
testUnambiguousPartialLongOption2
skipped: not supported by the BasicParser
testUnambiguousPartialLongOption3
skipped: not supported by the BasicParser
testUnambiguousPartialLongOption4
skipped: not supported by the BasicParser
testPropertiesOption1
skipped: not supported by the BasicParser
testPropertiesOption2
skipped: not supported by the BasicParser
testDoubleDash2
skipped: not supported by the BasicParser
testStopBursting2
skipped: not supported by the GnuParser
testAmbiguousLongWithoutEqualSingleDash
skipped: not supported by the GnuParser
testMissingArgWithBursting
skipped: not supported by the GnuParser
testShortWithUnexpectedArgument
skipped: not supported by the GnuParser
testStopBursting
skipped: not supported by the GnuParser
testPartialLongOptionSingleDash
skipped: not supported by the GnuParser
testLongWithoutEqualSingleDash
skipped: not supported by the GnuParser
testUnrecognizedOptionWithBursting
skipped: not supported by the GnuParser
testBursting
skipped: not supported by the GnuParser
testAmbiguousPartialLongOption1
skipped: not supported by the GnuParser
testAmbiguousPartialLongOption2
skipped: not supported by the GnuParser
testAmbiguousPartialLongOption3
skipped: not supported by the GnuParser
testAmbiguousPartialLongOption4
skipped: not supported by the GnuParser
testNegativeOption
skipped: not supported by the GnuParser (CLI-184)
testLongWithUnexpectedArgument1
skipped: not supported by the GnuParser
testLongWithUnexpectedArgument2
skipped: not supported by the GnuParser
testUnambiguousPartialLongOption1
skipped: not supported by the GnuParser
testUnambiguousPartialLongOption2
skipped: not supported by the GnuParser
testUnambiguousPartialLongOption3
skipped: not supported by the GnuParser
testUnambiguousPartialLongOption4
skipped: not supported by the GnuParser
testDoubleDash2
skipped: not supported by the GnuParser
testAmbiguousLongWithoutEqualSingleDash
skipped: not supported by the PosixParser
testLongWithoutEqualSingleDash
skipped: not supported by the PosixParser
testAmbiguousPartialLongOption4
skipped: not supported by the PosixParser
testShortWithEqual
skipped: not supported by the PosixParser
testNegativeOption
skipped: not supported by the PosixParser (CLI-184)
testLongWithUnexpectedArgument1
skipped: not supported by the PosixParser
testLongWithEqualSingleDash
skipped: not supported by the PosixParser
testUnambiguousPartialLongOption4
skipped: not supported by the PosixParser
testDoubleDash2
skipped: not supported by the PosixParser