Apache Commons logo Commons CLI

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
364 0 0 0 100% 0.171

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 25 0 0 0 100% 0.012
org.apache.commons.cli 339 0 0 0 100% 0.159

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.004
BugCLI18Test 1 0 0 0 100% 0
BugCLI71Test 4 0 0 0 100% 0.003
BugsTest 12 0 0 0 100% 0.005

org.apache.commons.cli

Class Tests Errors Failures Skipped Success Rate Time
ApplicationTest 5 0 0 0 100% 0.045
ArgumentIsOptionTest 3 0 0 0 100% 0.004
BasicParserTest 58 0 0 0 100% 0.026
CommandLineTest 3 0 0 0 100% 0.005
DefaultParserTest 58 0 0 0 100% 0.015
GnuParserTest 58 0 0 0 100% 0.011
HelpFormatterTest 25 0 0 0 100% 0.007
OptionBuilderTest 9 0 0 0 100% 0
OptionGroupTest 13 0 0 0 100% 0.005
OptionsTest 10 0 0 0 100% 0.002
OptionTest 9 0 0 0 100% 0.002
PatternOptionBuilderTest 9 0 0 0 100% 0.014
PosixParserTest 58 0 0 0 100% 0.011
UtilTest 2 0 0 0 100% 0
ValuesTest 7 0 0 0 100% 0.008
ValueTest 12 0 0 0 100% 0.004

Test Cases

[Summary] [Package List] [Test Cases]

ApplicationTest

testAnt 0.023
testMan 0.016
testNLT 0.003
testLs 0.001
testGroovy 0.002

ArgumentIsOptionTest

testOptionWithArgument 0.001
testOptionAndOptionWithArgument 0.002
testOption 0.001

BasicParserTest

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

BugCLI133Test

testOrder 0

BugCLI13Test

testCLI13 0

BugCLI148Test

testWorkaround1 0
testWorkaround2 0

BugCLI162Test

testInfiniteLoop 0
testLongLineChunkingIndentIgnored 0
testLongLineChunking 0.001
testPrintHelpLongLines 0.003

BugCLI18Test

testCLI18 0

BugCLI71Test

testBasic 0.001
testLackOfError 0
testMistakenArgument 0.001
testGetsDefaultIfOptional 0.001

BugsTest

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

CommandLineTest

testGetParsedOptionValue 0.004
testGetOptions 0.001
testGetOptionProperties 0

DefaultParserTest

testSimpleLong 0.001
testSimpleShort 0
testStopBursting2 0.001
testMissingRequiredOption 0
testShortWithoutEqual 0
testReuseOptionsTwice 0.001
testMissingRequiredGroup 0
testOptionGroupLong 0
testAmbiguousLongWithoutEqualSingleDash 0.001
testMissingArgWithBursting 0.001
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.001
testPropertyOptionFlags 0
testPropertyOptionGroup 0.001
testUnrecognizedOptionWithBursting 0
testMultipleWithLong 0
testUnrecognizedOption 0
testBursting 0.001
testAmbiguousPartialLongOption1 0
testAmbiguousPartialLongOption2 0
testAmbiguousPartialLongOption3 0
testAmbiguousPartialLongOption4 0
testPropertyOptionUnexpected 0
testSingleDash 0.001
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.001
testMultiple 0
testArgumentStartingWithHyphen 0
testPropertiesOption1 0.001
testPropertiesOption2 0
testDoubleDash1 0
testDoubleDash2 0
testStopAtExpectedArg 0

GnuParserTest

testSimpleLong 0
testSimpleShort 0
testStopBursting2 0
testMissingRequiredOption 0.001
testShortWithoutEqual 0
testReuseOptionsTwice 0.001
testMissingRequiredGroup 0
testOptionGroupLong 0.001
testAmbiguousLongWithoutEqualSingleDash 0
testMissingArgWithBursting 0
testMissingRequiredOptions 0
testShortWithUnexpectedArgument 0
testPropertyOverrideValues 0
testStopAtNonOptionLong 0
testNegativeArgument 0
testStopBursting 0
testStopAtUnexpectedArg 0.001
testPartialLongOptionSingleDash 0
testOptionGroup 0
testLongWithoutEqualDoubleDash 0
testLongWithoutEqualSingleDash 0.001
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
testAmbiguousPartialLongOption4 0
testPropertyOptionUnexpected 0
testSingleDash 0
testShortWithEqual 0
testWithRequiredOption 0
testUnlimitedArgs 0.001
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.001
testArgumentStartingWithHyphen 0
testPropertiesOption1 0
testPropertiesOption2 0.001
testDoubleDash1 0
testDoubleDash2 0
testStopAtExpectedArg 0

HelpFormatterTest

testUsageWithLongOptSeparator 0.001
testRenderWrappedTextSingleLine 0.001
testIndentedHeaderAndFooter 0
testPrintSortedUsageWithNullComparator 0
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.001
testPrintOptionWithEmptyArgNameUsage 0
testRenderWrappedTextSingleLinePadded2 0
testOptionWithoutShortFormat2 0.001
testFindWrapPos 0

OptionBuilderTest

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

OptionGroupTest

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

OptionsTest

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

OptionTest

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

PatternOptionBuilderTest

testSimplePattern 0.011
testExistingFilePattern 0
testURLPattern 0.001
testEmptyPattern 0.001
testClassPattern 0
testRequiredOption 0
testNumberPattern 0
testUntypedPattern 0
testObjectPattern 0.001

PosixParserTest

testSimpleLong 0
testSimpleShort 0.001
testStopBursting2 0
testMissingRequiredOption 0
testShortWithoutEqual 0
testReuseOptionsTwice 0
testMissingRequiredGroup 0
testOptionGroupLong 0
testAmbiguousLongWithoutEqualSingleDash 0.001
testMissingArgWithBursting 0
testMissingRequiredOptions 0
testShortWithUnexpectedArgument 0
testPropertyOverrideValues 0
testStopAtNonOptionLong 0
testNegativeArgument 0
testStopBursting 0
testStopAtUnexpectedArg 0.001
testPartialLongOptionSingleDash 0
testOptionGroup 0
testLongWithoutEqualDoubleDash 0
testLongWithoutEqualSingleDash 0
testPropertyOptionSingularValue 0
testPropertyOptionMultipleValues 0
testMissingArg 0
testPropertyOptionFlags 0
testPropertyOptionGroup 0
testUnrecognizedOptionWithBursting 0
testMultipleWithLong 0
testUnrecognizedOption 0
testBursting 0.001
testAmbiguousPartialLongOption1 0
testAmbiguousPartialLongOption2 0
testAmbiguousPartialLongOption3 0
testAmbiguousPartialLongOption4 0.001
testPropertyOptionUnexpected 0
testSingleDash 0
testShortWithEqual 0
testWithRequiredOption 0.001
testUnlimitedArgs 0
testNegativeOption 0
testPropertyOptionRequired 0
testOptionAndRequiredOption 0.001
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
testDoubleDash1 0
testDoubleDash2 0.001
testStopAtExpectedArg 0

UtilTest

testStripLeadingAndTrailingQuotes 0
testStripLeadingHyphens 0

ValuesTest

testTwoArgValues 0.002
testShortArgs 0.001
testCharSeparator 0.001
testExtraArgs 0.001
testShortArgsWithValue 0.001
testComplexValues 0.001
testMultipleArgValues 0.001

ValueTest

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