Apache Commons logo Commons CLI

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
424 0 0 0 100% 0.113

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 339 0 0 0 100% 0.089
org.apache.commons.cli.bug 85 0 0 0 100% 0.024

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.002
ArgumentIsOptionTest 3 0 0 0 100% 0
BasicParserTest 58 0 0 0 100% 0.015
CommandLineTest 3 0 0 0 100% 0.007
DefaultParserTest 58 0 0 0 100% 0.009
GnuParserTest 58 0 0 0 100% 0.01
HelpFormatterTest 25 0 0 0 100% 0.007
OptionBuilderTest 9 0 0 0 100% 0
OptionGroupTest 13 0 0 0 100% 0.001
OptionsTest 10 0 0 0 100% 0.002
OptionTest 9 0 0 0 100% 0.002
PatternOptionBuilderTest 9 0 0 0 100% 0.015
PosixParserTest 58 0 0 0 100% 0.01
UtilTest 2 0 0 0 100% 0
ValuesTest 7 0 0 0 100% 0.007
ValueTest 12 0 0 0 100% 0.002

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 60 0 0 0 100% 0.021
BugCLI71Test 4 0 0 0 100% 0
BugsTest 12 0 0 0 100% 0.003

Test Cases

[Summary] [Package List] [Test Cases]

ApplicationTest

testAnt 0.001
testMan 0
testNLT 0
testLs 0.001
testGroovy 0

ArgumentIsOptionTest

testOptionWithArgument 0
testOptionAndOptionWithArgument 0
testOption 0

BasicParserTest

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

BugCLI71Test

testBasic 0
testLackOfError 0
testMistakenArgument 0
testGetsDefaultIfOptional 0

BugsTest

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

CommandLineTest

testGetParsedOptionValue 0.006
testGetOptions 0
testGetOptionProperties 0.001

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.001
testOptionGroup 0
testLongWithoutEqualDoubleDash 0
testLongWithoutEqualSingleDash 0
testPropertyOptionSingularValue 0.001
testPropertyOptionMultipleValues 0
testMissingArg 0
testPropertyOptionFlags 0
testPropertyOptionGroup 0.001
testUnrecognizedOptionWithBursting 0
testMultipleWithLong 0
testUnrecognizedOption 0
testBursting 0
testAmbiguousPartialLongOption1 0.001
testAmbiguousPartialLongOption2 0
testAmbiguousPartialLongOption3 0.001
testAmbiguousPartialLongOption4 0
testPropertyOptionUnexpected 0
testSingleDash 0
testShortWithEqual 0
testWithRequiredOption 0.001
testUnlimitedArgs 0
testNegativeOption 0
testPropertyOptionRequired 0
testOptionAndRequiredOption 0
testLongWithEqualDoubleDash 0
testLongWithUnexpectedArgument1 0
testLongWithUnexpectedArgument2 0
testStopAtNonOptionShort 0
testLongWithEqualSingleDash 0.001
testUnambiguousPartialLongOption1 0
testUnambiguousPartialLongOption2 0
testUnambiguousPartialLongOption3 0
testUnambiguousPartialLongOption4 0
testMultiple 0
testArgumentStartingWithHyphen 0
testPropertiesOption1 0.001
testPropertiesOption2 0.001
testDoubleDash1 0
testDoubleDash2 0
testStopAtExpectedArg 0

GnuParserTest

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

HelpFormatterTest

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

OptionBuilderTest

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

OptionGroupTest

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

OptionsTest

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

OptionTest

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

PatternOptionBuilderTest

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

PosixParserTest

testSimpleLong 0
testSimpleShort 0
testStopBursting2 0.001
testMissingRequiredOption 0
testShortWithoutEqual 0
testReuseOptionsTwice 0
testMissingRequiredGroup 0.001
testOptionGroupLong 0
testAmbiguousLongWithoutEqualSingleDash 0
testMissingArgWithBursting 0
testMissingRequiredOptions 0
testShortWithUnexpectedArgument 0
testPropertyOverrideValues 0.001
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.001
testPropertyOptionGroup 0
testUnrecognizedOptionWithBursting 0
testMultipleWithLong 0.001
testUnrecognizedOption 0
testBursting 0
testAmbiguousPartialLongOption1 0
testAmbiguousPartialLongOption2 0.001
testAmbiguousPartialLongOption3 0
testAmbiguousPartialLongOption4 0
testPropertyOptionUnexpected 0
testSingleDash 0
testShortWithEqual 0
testWithRequiredOption 0
testUnlimitedArgs 0
testNegativeOption 0
testPropertyOptionRequired 0
testOptionAndRequiredOption 0.001
testLongWithEqualDoubleDash 0
testLongWithUnexpectedArgument1 0
testLongWithUnexpectedArgument2 0
testStopAtNonOptionShort 0
testLongWithEqualSingleDash 0
testUnambiguousPartialLongOption1 0.001
testUnambiguousPartialLongOption2 0
testUnambiguousPartialLongOption3 0
testUnambiguousPartialLongOption4 0
testMultiple 0
testArgumentStartingWithHyphen 0
testPropertiesOption1 0.001
testPropertiesOption2 0
testDoubleDash1 0
testDoubleDash2 0
testStopAtExpectedArg 0

UtilTest

testStripLeadingAndTrailingQuotes 0
testStripLeadingHyphens 0

ValuesTest

testTwoArgValues 0.004
testShortArgs 0.001
testCharSeparator 0
testExtraArgs 0.001
testShortArgsWithValue 0
testComplexValues 0.001
testMultipleArgValues 0

ValueTest

testShortOptionalArgValues 0
testLongOptionalArgValue 0.001
testShortOptionalArgNoValue 0
testLongWithArg 0
testLongOptionalNArgValues 0
testShortWithArg 0.001
testLongOptionalArgValues 0
testShortOptionalNArgValues 0
testLongNoArg 0
testShortNoArg 0
testLongOptionalNoValue 0
testShortOptionalArgValue 0