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.43

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

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
BugCLI13Test 1 0 0 0 100% 0
BugCLI148Test 2 0 0 0 100% 0
BugCLI162Test 4 0 0 0 100% 0
BugCLI18Test 1 0 0 0 100% 0
BugCLI252Test 2 0 0 0 100% 0.009
BugCLI265Test 3 0 0 0 100% 0.002
BugCLI266Test 2 0 0 0 100% 0.001
BugCLI71Test 4 0 0 0 100% 0.003
BugsTest 12 0 0 0 100% 0.01

org.apache.commons.cli

Class Tests Errors Failures Skipped Success Rate Time
ApplicationTest 5 0 0 0 100% 0.15
ArgumentIsOptionTest 3 0 0 0 100% 0
BasicParserTest 58 0 0 24 58.621% 0.05
CommandLineTest 8 0 0 0 100% 0.012
DefaultParserTest 58 0 0 0 100% 0.053
GnuParserTest 58 0 0 21 63.793% 0.021
HelpFormatterTest 25 0 0 0 100% 0.007
OptionBuilderTest 9 0 0 0 100% 0.005
OptionGroupTest 13 0 0 0 100% 0.009
OptionsTest 10 0 0 0 100% 0.003
OptionTest 10 0 0 0 100% 0.002
PatternOptionBuilderTest 9 0 0 0 100% 0.049
PosixParserTest 58 0 0 9 84.483% 0.024
UtilTest 2 0 0 0 100% 0
ValuesTest 7 0 0 0 100% 0.007
ValueTest 24 0 0 0 100% 0.013

Test Cases

[Summary] [Package List] [Test Cases]

ApplicationTest

testAnt 0.009
testMan 0.01
testNLT 0.002
testLs 0
testGroovy 0.001

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.001
testMissingRequiredOption 0
testReuseOptionsTwice 0
testMissingRequiredGroup 0.004
testOptionGroupLong 0.001
testMissingRequiredOptions 0
testShortWithUnexpectedArgument 0
testPropertyOverrideValues 0.001
testStopAtNonOptionLong 0
testNegativeArgument 0
testStopAtUnexpectedArg 0.001
testOptionGroup 0
testLongWithoutEqualDoubleDash 0.001
testPropertyOptionSingularValue 0
testPropertyOptionMultipleValues 0.001
testMissingArg 0
testPropertyOptionFlags 0.001
testPropertyOptionGroup 0.001
testMultipleWithLong 0.001
testUnrecognizedOption 0
testPropertyOptionUnexpected 0.001
testSingleDash 0
testWithRequiredOption 0
testUnlimitedArgs 0
testPropertyOptionRequired 0.001
testOptionAndRequiredOption 0
testLongWithUnexpectedArgument1 0
testLongWithUnexpectedArgument2 0
testStopAtNonOptionShort 0
testMultiple 0.001
testArgumentStartingWithHyphen 0
testDoubleDash1 0.001
testStopAtExpectedArg 0

BugCLI133Test

testOrder 0

BugCLI13Test

testCLI13 0

BugCLI148Test

testWorkaround1 0
testWorkaround2 0

BugCLI162Test

testInfiniteLoop 0
testLongLineChunkingIndentIgnored 0
testLongLineChunking 0
testPrintHelpLongLines 0

BugCLI18Test

testCLI18 0

BugCLI252Test

testAmbiquousOptionName 0.009
testExactOptionNameMatch 0

BugCLI265Test

shouldParseShortOptionWithValue 0.001
shouldParseShortOptionWithoutValue 0
shouldParseConcatenatedShortOptions 0

BugCLI266Test

testOptionComparatorInsertedOrder 0
testOptionComparatorDefaultOrder 0

BugCLI71Test

testBasic 0.001
testLackOfError 0
testMistakenArgument 0
testGetsDefaultIfOptional 0.001

BugsTest

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

CommandLineTest

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

DefaultParserTest

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

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
testSimpleShort 0
testMissingRequiredOption 0
testShortWithoutEqual 0
testReuseOptionsTwice 0
testMissingRequiredGroup 0.001
testOptionGroupLong 0
testMissingRequiredOptions 0
testPropertyOverrideValues 0
testStopAtNonOptionLong 0
testNegativeArgument 0
testStopAtUnexpectedArg 0
testOptionGroup 0
testLongWithoutEqualDoubleDash 0
testPropertyOptionSingularValue 0
testPropertyOptionMultipleValues 0
testMissingArg 0
testPropertyOptionFlags 0
testPropertyOptionGroup 0
testMultipleWithLong 0
testUnrecognizedOption 0
testPropertyOptionUnexpected 0
testSingleDash 0.001
testShortWithEqual 0
testWithRequiredOption 0
testUnlimitedArgs 0
testPropertyOptionRequired 0
testOptionAndRequiredOption 0.001
testLongWithEqualDoubleDash 0
testStopAtNonOptionShort 0
testLongWithEqualSingleDash 0
testMultiple 0.001
testArgumentStartingWithHyphen 0
testPropertiesOption1 0
testPropertiesOption2 0
testDoubleDash1 0.001
testStopAtExpectedArg 0

HelpFormatterTest

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

OptionBuilderTest

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

OptionGroupTest

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

OptionsTest

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

OptionTest

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

PatternOptionBuilderTest

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

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.001
testMissingRequiredOption 0
testShortWithoutEqual 0
testReuseOptionsTwice 0
testMissingRequiredGroup 0.001
testOptionGroupLong 0
testMissingArgWithBursting 0
testMissingRequiredOptions 0
testShortWithUnexpectedArgument 0.001
testPropertyOverrideValues 0
testStopAtNonOptionLong 0
testNegativeArgument 0
testStopBursting 0
testStopAtUnexpectedArg 0
testPartialLongOptionSingleDash 0
testOptionGroup 0
testLongWithoutEqualDoubleDash 0
testPropertyOptionSingularValue 0
testPropertyOptionMultipleValues 0
testMissingArg 0
testPropertyOptionFlags 0
testPropertyOptionGroup 0.001
testUnrecognizedOptionWithBursting 0
testMultipleWithLong 0
testUnrecognizedOption 0
testBursting 0.001
testAmbiguousPartialLongOption1 0
testAmbiguousPartialLongOption2 0
testAmbiguousPartialLongOption3 0.001
testPropertyOptionUnexpected 0
testSingleDash 0
testWithRequiredOption 0.001
testUnlimitedArgs 0
testPropertyOptionRequired 0
testOptionAndRequiredOption 0
testLongWithEqualDoubleDash 0.001
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.003
testShortArgs 0.001
testCharSeparator 0
testExtraArgs 0.001
testShortArgsWithValue 0.001
testComplexValues 0
testMultipleArgValues 0

ValueTest

testLongOptionalArgValuesWithOption 0.001
testShortOptionalNArgValuesWithOption 0
testShortOptionalArgValues 0
testShortOptionalArgValuesWithOption 0.001
testShortOptionalArgValueWithOption 0
testLongOptionalArgValue 0
testShortOptionalArgNoValue 0
testShortNoArgWithOption 0.001
testLongWithArg 0
testLongOptionalNArgValuesWithOption 0
testLongOptionalNArgValues 0.001
testShortWithArgWithOption 0
testShortWithArg 0
testLongOptionalArgValueWithOption 0.001
testLongOptionalArgValues 0
testShortOptionalNArgValues 0.001
testLongNoArgWithOption 0
testLongOptionalNoValueWithOption 0.001
testLongNoArg 0
testShortNoArg 0
testLongOptionalNoValue 0
testShortOptionalArgValue 0
testShortOptionalArgNoValueWithOption 0.001
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