Fork me on GitHub

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


TestsErrors FailuresSkippedSuccess RateTime
163001292.638%1.087

Note: failures are anticipated and checked for with assertions while errors are unanticipated.


Package List

[Summary] [Package List] [Test Cases]


PackageTestsErrors FailuresSkippedSuccess RateTime
com.lexicalscope.jewel.cli.parser7000100%0.02
com.lexicalscope.jewel.cli.examples56000100%0.374
com.lexicalscope.jewel.cli77000100%0.652
com.lexicalscope.jewel.cli.validation23001247.826%0.041

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

com.lexicalscope.jewel.cli.parser

ClassTestsErrors FailuresSkippedSuccess RateTime
TestArgumentParserImpl7000100%0.02

com.lexicalscope.jewel.cli.examples

ClassTestsErrors FailuresSkippedSuccess RateTime
TestOptionalMultivaluedOptions6000100%0.047
TestClassOptionalOption3000100%0.015
TestOptionsWithoutGetPrefix2000100%0.007
TestOptionalOptionAlternative1000100%0.006
TestValidationFailure19000100%0.079
TestDefaultExample2000100%0.015
TestPatternExample1000100%0.001
TestBooleanOptionExample2000100%0.008
TestFileExample1000100%0.004
TestHelpExample1000100%0.013
TestSimpleExample1000100%0.008
TestListExample1000100%0.007
TestEnumOptionExample2000100%0.008
TestRmExample2000100%0.054
TestOptionalOption1000100%0.004
TestPrimitiveExample1000100%0.038
TestHelpMessages3000100%0.007
TestRmClassExample2000100%0.016
TestClassOptionalUnparsedOption2000100%0.014
TestHelpMessageOrder2000100%0.015
TestMultipleOptionNames1000100%0.008

com.lexicalscope.jewel.cli

ClassTestsErrors FailuresSkippedSuccess RateTime
TestArgumentValidationException5000100%0.006
TestUnparsedArguments14000100%0.041
TestObjectMethods10000100%0.043
TestPattern2000100%0.004
TestInheritedOptions1000100%0.007
TestCliImpl14000100%0.271
TestOptionSpecificationImpl12000100%0.044
TestOptionGenericTypes3000100%0.035
TestArgumentCollectionBuilder6000100%0.036
TestInvalidSpecificationErrorHandling1000100%0.001
TestConvertTypeOfObject8000100%0.013
TestCliSpecification1000100%0.151

com.lexicalscope.jewel.cli.validation

ClassTestsErrors FailuresSkippedSuccess RateTime
TestArgumentValidatorImpl1200120%0.007
TestArgumentValidatorImpl211000100%0.034

Test Cases

[Summary] [Package List] [Test Cases]

TestArgumentValidationException

testMissingOption0
testUnrecognisedOptionDoesNotCauseMissingOption0
testMissingDashes0.001
testMultipleMissingOption0.002
testMissingOptionWithDescription0.002

TestOptionalMultivaluedOptions

multivaluedOptionalOptionShouldReturnFalseIfOptionIsNotSpecified0.009
multivaluedOptionalOptionShouldReturnTrueIfOptionIsSpecified0.007
multivaluedOptionalOptionShouldReturnFalseIfNothingIsSpecified0.005
missingMultivaluedOptionalOptionShouldReturnNullIfQueried0.005
multivaluedOptionalWithEmptyListDefaultShouldReturnEmptyListWhenQueried0.005
multivaluedOptionalWithNullDefaultShouldReturnEmptyListWhenQueried0.006

TestClassOptionalOption

testOptionalOptionPresent0.004
testOptionalOptionMissing0.003
testMandatoryOptionMissing0.008

TestUnparsedArguments

testUnparsedOption0.004
testUnparsedOptionMissingValue0.001
testUnparsedListOption0.004
testUnparsedListOptionMissingValue0.002
missingUnparsedListOptionWithEmptyListDefaultReturnsEmptyList0.003
missingUnparsedListOptionWithNullDefaultReturnsNull0.003
ifNoUnparsedOptionIsSpecifiedButValuesArePresentThenAValidationErrorOccurs0.001
testOptionalUnparsedOption0.001
testOptionalUnparsedOptionMissingValue0.003
testOptionalUnparsedListOption0.003
testOptionalUnparsedListOptionMissingValue0.002
unparsedListOptionMissingValueDefaultsToEmpty0.002
unparsedListOptionMissingValueDefaultsToNull0.002
unparsedListOptionMissingValueDefaultsToValues0.004

TestObjectMethods

testToString0.005
testEquals0.002
testNotEquals0.005
testToStringList0.004
testToStringBoolean0.004
testToStringOptionalMissing0.003
testToStringOptionalPresent0.002
testToStringUnparsedOptions0.004
testToStringSeveralOptions0.007
testHashCode0

TestOptionsWithoutGetPrefix

interfaceOptionsWithoutGetPrefixWork0.004
classOptionsWithoutGetPrefixWork0.002

TestOptionalOptionAlternative

testOptionalOption0.005

TestValidationFailure

testHelpRequested0.003
invalidNumberThrowsException0.009
optionAfterUnparsedThrowsException0.003
missingMandatoryOptionThrowsException0.002
missingValueForOptionThrowsException0.004
missingValueInListWithMinimumOfOneThrowsException0.003
missingValueInListWithMinimumOfTwoThrowsException0.003
valueThatDoesNotMatchThrowsException0.003
unusedAdditionalValueThrowsException0.005
unexpectedAdditionalValueInListWithMaximumOfOneThrowsException0.005
unexpectedAdditionalValueInListWithMaximumOfTwoThrowsException0.004
unexpectedAdditionalValueInListWithExactArityThrowsException0.004
unexpectedAdditionalValueInListWithExactMultiValuedArityThrowsException0.004
unusedUnparsedValueThrowsException0.004
unexpectedOptionThrowsException0.002
unexpectedTrailingValueThrowsException0.002
multipleUnexpectedTrailingValuesThrowsException0.001
unexpectedValueThrowsException0.002
multipleUnexpectedValuesThrowsException0.002

TestDefaultExample

testDefaultExample0.006
testDefaultExampleSpecified0.006

TestArgumentParserImpl

testParseArgumentsOnlyUnparsedSeperator0.004
testParseShortArguments0.002
testParseArguments0.001
testParseArgumentsNotUparsed0.002
testParseArgumentsUnparsed0.004
testParseArgumentsOnlyUnparsed0.001
testParseAssignedValue0.001

TestPattern

testStringPatternMismatch0
testStringPattern0.002

TestPatternExample

testPatternExample0

TestArgumentValidatorImpl2

testMissingOption0.004
testMultipleValue0.003
testMultipleValueEndOfArguments0.003
testMultipleValueNotEndOfArguments0.003
testAdjacentShortOptions0.005
testSingleValue0.002
testExtraOption0.003
testMissingValue0.001
testUnexpectedValue0.003
testMissingMultipleValue0.003
testOptionAndUnparsed0.003

TestBooleanOptionExample

specifiedBooleanOptionsReturnTrue0.004
omittedBooleanOptionsReturnFalse0.003

TestInheritedOptions

testSubInterface0.006

TestCliImpl

testSingleOption0.13
testSingleBooleanOption0.011
testIntegerOption0.022
testInvalidIntegerOption0.022
testInvalidIntOption0.012
testInvalidOption0.004
testSingleOptionalOption0.013
testSingleOptionalOptionRequestMissing0.006
testCharacterValue0.01
testInvalidCharacterValue0.008
testMethodWithArguments0.002
testMethodWithMissingAnnotation0.005
testListOptionMissingValue0.008
testEnumDefaultList0.011

TestFileExample

testFileExample0.004

TestHelpExample

testHelpExample0.012

TestSimpleExample

testSimpleExample0.007

TestOptionSpecificationImpl

testSumary0.005
testToString0.005
testIsMultiValued0.002
testGetType0.002
testGetName0.002
testGetShortName0.002
testGetLongName0.001
testMultipleLongNames0.005
testEmptyLongNameIsNotAllowed0.01
testHasValue0.002
testHasShortName0.001
testIsOptional0.002

TestListExample

testListExample0.006

TestEnumOptionExample

specifiedSingleValueEnumOptionGivesEnumValue0.003
specifiedMultivaluedEnumOptionGivesListOfEnumValues0.003

TestOptionGenericTypes

genericTypeWithAConstructorTakingTypeIsPassedTheGenericReturnTypeOfTheMethod0.015
stringConstructorIsPreferedToConstructorContainingType0.009
genericTypesCanBeUsedAsOptionValues0.008

TestArgumentCollectionBuilder

testParseArgumentsOnlyUnparsedSeperator0.021
testParseArguments0.001
testParseArgumentsNotUparsed0.001
noOptionsProducesUnparsed0.001
testParseArgumentsUnparsed0.001
testParseArgumentsMisplacedValue0

TestInvalidSpecificationErrorHandling

testNullAndNonNullDefaults0.001

TestRmExample

testRmExample0.029
testRmExampleHelp0.022

TestConvertTypeOfObject

argumentConversionTakesPlaceOnGet0
argumentConversionCanConvertFromStringToPrimitive0
argumentConversionCanConvertFromStringToChar0
argumentConversionCannotConvertFromStringToChar0.001
argumentConversionTakesPlaceOnGetOfIterable0.001
argumentConversionTakesPlaceOnGetOfCollection0.001
argumentConversionTakesPlaceOnGetOfList0.001
argumentConversionTakesPlaceOnGetOfSet0.001

TestOptionalOption

testOptionalOption0.003

TestCliSpecification

testApplicationName0.093

TestPrimitiveExample

testPrimitiveExample0.037

TestHelpMessages

optionWithDefaultShowAsOptional0.002
hiddenOptionNotIncludedInHelp0.002
hiddenUnparsedOptionNotIncludedInHelp0.001

TestRmClassExample

testRmExample0.008
testRmExampleHelp0.007

TestClassOptionalUnparsedOption

testOptionalUnparsedOptionPresent0.006
testOptionalUnparsedOptionMissing0.003

TestHelpMessageOrder

lexicographicOrderSupported0.006
definitionOrderSupported0.007

TestMultipleOptionNames

testMultipleOptionNames0.007

Failure Details

[Summary] [Package List] [Test Cases]


testMissingOption
skipped: skipped
testMultipleValue
skipped: skipped
testMultipleValueEndOfArguments
skipped: skipped
testMultipleValueNotEndOfArguments
skipped: skipped
testAdjacentShortOptions
skipped: skipped
testSingleValue
skipped: skipped
testExtraOption
skipped: skipped
testMissingValue
skipped: skipped
testUnexpectedValue
skipped: skipped
testMissingMultipleValue
skipped: skipped
testOptionAndUnparsed
skipped: skipped
noUnparsedSpecificationAndNoUnparsedOptionsIsValid
skipped: skipped