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

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 13 0 0 0 100% 0.021
org.apache.commons.cli 351 0 0 0 100% 0.161

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.021
BugCLI18Test 1 0 0 0 100% 0
BugCLI71Test 4 0 0 0 100% 0

org.apache.commons.cli

Class Tests Errors Failures Skipped Success Rate Time
ApplicationTest 5 0 0 0 100% 0.051
ArgumentIsOptionTest 3 0 0 0 100% 0.012
BasicParserTest 58 0 0 0 100% 0.018
BugsTest 12 0 0 0 100% 0
CommandLineTest 3 0 0 0 100% 0
DefaultParserTest 58 0 0 0 100% 0.001
GnuParserTest 58 0 0 0 100% 0.001
HelpFormatterTest 25 0 0 0 100% 0.002
OptionBuilderTest 9 0 0 0 100% 0
OptionGroupTest 13 0 0 0 100% 0.003
OptionsTest 10 0 0 0 100% 0.002
OptionTest 9 0 0 0 100% 0.002
PatternOptionBuilderTest 9 0 0 0 100% 0.032
PosixParserTest 58 0 0 0 100% 0.022
UtilTest 2 0 0 0 100% 0
ValuesTest 7 0 0 0 100% 0.009
ValueTest 12 0 0 0 100% 0.006

Test Cases

[Summary] [Package List] [Test Cases]

ApplicationTest

testAnt 0.02
testMan 0.031
testNLT 0
testLs 0
testGroovy 0

ArgumentIsOptionTest

testOptionWithArgument 0.001
testOptionAndOptionWithArgument 0.011
testOption 0

BasicParserTest

testSimpleLong 0.002
testSimpleShort 0.001
testStopBursting2 0.001
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.001
testNegativeArgument 0
testStopBursting 0.001
testStopAtUnexpectedArg 0
testPartialLongOptionSingleDash 0
testOptionGroup 0.001
testLongWithoutEqualDoubleDash 0.001
testLongWithoutEqualSingleDash 0
testPropertyOptionSingularValue 0
testPropertyOptionMultipleValues 0
testMissingArg 0.001
testPropertyOptionFlags 0.002
testPropertyOptionGroup 0.001
testUnrecognizedOptionWithBursting 0
testMultipleWithLong 0
testUnrecognizedOption 0
testBursting 0
testAmbiguousPartialLongOption1 0
testAmbiguousPartialLongOption2 0
testAmbiguousPartialLongOption3 0
testAmbiguousPartialLongOption4 0
testPropertyOptionUnexpected 0
testSingleDash 0
testShortWithEqual 0
testWithRequiredOption 0
testUnlimitedArgs 0
testNegativeOption 0
testPropertyOptionRequired 0
testOptionAndRequiredOption 0
testLongWithEqualDoubleDash 0
testLongWithUnexpectedArgument1 0
testLongWithUnexpectedArgument2 0
testStopAtNonOptionShort 0
testLongWithEqualSingleDash 0
testUnambiguousPartialLongOption1 0
testUnambiguousPartialLongOption2 0
testUnambiguousPartialLongOption3 0
testUnambiguousPartialLongOption4 0
testMultiple 0
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.021

BugCLI18Test

testCLI18 0

BugCLI71Test

testBasic 0
testLackOfError 0
testMistakenArgument 0
testGetsDefaultIfOptional 0

BugsTest

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

CommandLineTest

testGetParsedOptionValue 0
testGetOptions 0
testGetOptionProperties 0

DefaultParserTest

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

GnuParserTest

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
testPropertyOptionMultipleValues 0
testMissingArg 0
testPropertyOptionFlags 0
testPropertyOptionGroup 0
testUnrecognizedOptionWithBursting 0
testMultipleWithLong 0
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
testLongWithUnexpectedArgument1 0
testLongWithUnexpectedArgument2 0
testStopAtNonOptionShort 0
testLongWithEqualSingleDash 0
testUnambiguousPartialLongOption1 0
testUnambiguousPartialLongOption2 0
testUnambiguousPartialLongOption3 0
testUnambiguousPartialLongOption4 0
testMultiple 0
testArgumentStartingWithHyphen 0
testPropertiesOption1 0
testPropertiesOption2 0
testDoubleDash1 0
testDoubleDash2 0
testStopAtExpectedArg 0

HelpFormatterTest

testUsageWithLongOptSeparator 0
testRenderWrappedTextSingleLine 0
testIndentedHeaderAndFooter 0
testPrintSortedUsageWithNullComparator 0
testAccessors 0
testRtrim 0.001
testPrintRequiredOptionGroupUsage 0
testHelpWithLongOptSeparator 0
testRenderWrappedTextSingleLinePadded 0
testRenderWrappedTextMultiLine 0
testPrintUsage 0
testPrintSortedUsage 0
testPrintHelpWithEmptySyntax 0
testPrintOptions 0
testAutomaticUsage 0
testDefaultArgName 0
testHeaderStartingWithLineSeparator 0
testRenderWrappedTextWordCut 0
testOptionWithoutShortFormat 0
testRenderWrappedTextMultiLinePadded 0
testPrintOptionGroupUsage 0
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
testNoOptionsExtraArgs 0.001
testGetNames 0
testTwoValidOptions 0
testSingleOption 0
testToString 0
testTwoOptionsFromGroup 0.001
testTwoValidLongOptions 0.001
testSingleOptionFromGroup 0
testTwoOptionsFromGroupWithProperties 0
testTwoLongOptionsFromGroup 0
testSingleLongOption 0
testValidLongOnlyOptions 0

OptionsTest

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

OptionTest

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

PatternOptionBuilderTest

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

PosixParserTest

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

UtilTest

testStripLeadingAndTrailingQuotes 0
testStripLeadingHyphens 0

ValuesTest

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

ValueTest

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