Summary
[Summary] [Package List] [Test Cases]
Tests | Errors | Failures | Skipped | Success Rate | Time |
---|---|---|---|---|---|
163 | 0 | 0 | 12 | 92.638% | 1.087 |
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 |
---|---|---|---|---|---|---|
com.lexicalscope.jewel.cli.parser | 7 | 0 | 0 | 0 | 100% | 0.02 |
com.lexicalscope.jewel.cli.examples | 56 | 0 | 0 | 0 | 100% | 0.374 |
com.lexicalscope.jewel.cli | 77 | 0 | 0 | 0 | 100% | 0.652 |
com.lexicalscope.jewel.cli.validation | 23 | 0 | 0 | 12 | 47.826% | 0.041 |
Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.
com.lexicalscope.jewel.cli.parser
Class | Tests | Errors | Failures | Skipped | Success Rate | Time | |
---|---|---|---|---|---|---|---|
![]() | TestArgumentParserImpl | 7 | 0 | 0 | 0 | 100% | 0.02 |
com.lexicalscope.jewel.cli.examples
Class | Tests | Errors | Failures | Skipped | Success Rate | Time | |
---|---|---|---|---|---|---|---|
![]() | TestOptionalMultivaluedOptions | 6 | 0 | 0 | 0 | 100% | 0.047 |
![]() | TestClassOptionalOption | 3 | 0 | 0 | 0 | 100% | 0.015 |
![]() | TestOptionsWithoutGetPrefix | 2 | 0 | 0 | 0 | 100% | 0.007 |
![]() | TestOptionalOptionAlternative | 1 | 0 | 0 | 0 | 100% | 0.006 |
![]() | TestValidationFailure | 19 | 0 | 0 | 0 | 100% | 0.079 |
![]() | TestDefaultExample | 2 | 0 | 0 | 0 | 100% | 0.015 |
![]() | TestPatternExample | 1 | 0 | 0 | 0 | 100% | 0.001 |
![]() | TestBooleanOptionExample | 2 | 0 | 0 | 0 | 100% | 0.008 |
![]() | TestFileExample | 1 | 0 | 0 | 0 | 100% | 0.004 |
![]() | TestHelpExample | 1 | 0 | 0 | 0 | 100% | 0.013 |
![]() | TestSimpleExample | 1 | 0 | 0 | 0 | 100% | 0.008 |
![]() | TestListExample | 1 | 0 | 0 | 0 | 100% | 0.007 |
![]() | TestEnumOptionExample | 2 | 0 | 0 | 0 | 100% | 0.008 |
![]() | TestRmExample | 2 | 0 | 0 | 0 | 100% | 0.054 |
![]() | TestOptionalOption | 1 | 0 | 0 | 0 | 100% | 0.004 |
![]() | TestPrimitiveExample | 1 | 0 | 0 | 0 | 100% | 0.038 |
![]() | TestHelpMessages | 3 | 0 | 0 | 0 | 100% | 0.007 |
![]() | TestRmClassExample | 2 | 0 | 0 | 0 | 100% | 0.016 |
![]() | TestClassOptionalUnparsedOption | 2 | 0 | 0 | 0 | 100% | 0.014 |
![]() | TestHelpMessageOrder | 2 | 0 | 0 | 0 | 100% | 0.015 |
![]() | TestMultipleOptionNames | 1 | 0 | 0 | 0 | 100% | 0.008 |
com.lexicalscope.jewel.cli
Class | Tests | Errors | Failures | Skipped | Success Rate | Time | |
---|---|---|---|---|---|---|---|
![]() | TestArgumentValidationException | 5 | 0 | 0 | 0 | 100% | 0.006 |
![]() | TestUnparsedArguments | 14 | 0 | 0 | 0 | 100% | 0.041 |
![]() | TestObjectMethods | 10 | 0 | 0 | 0 | 100% | 0.043 |
![]() | TestPattern | 2 | 0 | 0 | 0 | 100% | 0.004 |
![]() | TestInheritedOptions | 1 | 0 | 0 | 0 | 100% | 0.007 |
![]() | TestCliImpl | 14 | 0 | 0 | 0 | 100% | 0.271 |
![]() | TestOptionSpecificationImpl | 12 | 0 | 0 | 0 | 100% | 0.044 |
![]() | TestOptionGenericTypes | 3 | 0 | 0 | 0 | 100% | 0.035 |
![]() | TestArgumentCollectionBuilder | 6 | 0 | 0 | 0 | 100% | 0.036 |
![]() | TestInvalidSpecificationErrorHandling | 1 | 0 | 0 | 0 | 100% | 0.001 |
![]() | TestConvertTypeOfObject | 8 | 0 | 0 | 0 | 100% | 0.013 |
![]() | TestCliSpecification | 1 | 0 | 0 | 0 | 100% | 0.151 |
com.lexicalscope.jewel.cli.validation
Class | Tests | Errors | Failures | Skipped | Success Rate | Time | |
---|---|---|---|---|---|---|---|
![]() | TestArgumentValidatorImpl | 12 | 0 | 0 | 12 | 0% | 0.007 |
![]() | TestArgumentValidatorImpl2 | 11 | 0 | 0 | 0 | 100% | 0.034 |
Test Cases
[Summary] [Package List] [Test Cases]
TestArgumentValidationException
![]() | testMissingOption | 0 |
![]() | testUnrecognisedOptionDoesNotCauseMissingOption | 0 |
![]() | testMissingDashes | 0.001 |
![]() | testMultipleMissingOption | 0.002 |
![]() | testMissingOptionWithDescription | 0.002 |
TestOptionalMultivaluedOptions
![]() | multivaluedOptionalOptionShouldReturnFalseIfOptionIsNotSpecified | 0.009 |
![]() | multivaluedOptionalOptionShouldReturnTrueIfOptionIsSpecified | 0.007 |
![]() | multivaluedOptionalOptionShouldReturnFalseIfNothingIsSpecified | 0.005 |
![]() | missingMultivaluedOptionalOptionShouldReturnNullIfQueried | 0.005 |
![]() | multivaluedOptionalWithEmptyListDefaultShouldReturnEmptyListWhenQueried | 0.005 |
![]() | multivaluedOptionalWithNullDefaultShouldReturnEmptyListWhenQueried | 0.006 |
TestClassOptionalOption
![]() | testOptionalOptionPresent | 0.004 |
![]() | testOptionalOptionMissing | 0.003 |
![]() | testMandatoryOptionMissing | 0.008 |
TestUnparsedArguments
![]() | testUnparsedOption | 0.004 |
![]() | testUnparsedOptionMissingValue | 0.001 |
![]() | testUnparsedListOption | 0.004 |
![]() | testUnparsedListOptionMissingValue | 0.002 |
![]() | missingUnparsedListOptionWithEmptyListDefaultReturnsEmptyList | 0.003 |
![]() | missingUnparsedListOptionWithNullDefaultReturnsNull | 0.003 |
![]() | ifNoUnparsedOptionIsSpecifiedButValuesArePresentThenAValidationErrorOccurs | 0.001 |
![]() | testOptionalUnparsedOption | 0.001 |
![]() | testOptionalUnparsedOptionMissingValue | 0.003 |
![]() | testOptionalUnparsedListOption | 0.003 |
![]() | testOptionalUnparsedListOptionMissingValue | 0.002 |
![]() | unparsedListOptionMissingValueDefaultsToEmpty | 0.002 |
![]() | unparsedListOptionMissingValueDefaultsToNull | 0.002 |
![]() | unparsedListOptionMissingValueDefaultsToValues | 0.004 |
TestObjectMethods
![]() | testToString | 0.005 |
![]() | testEquals | 0.002 |
![]() | testNotEquals | 0.005 |
![]() | testToStringList | 0.004 |
![]() | testToStringBoolean | 0.004 |
![]() | testToStringOptionalMissing | 0.003 |
![]() | testToStringOptionalPresent | 0.002 |
![]() | testToStringUnparsedOptions | 0.004 |
![]() | testToStringSeveralOptions | 0.007 |
![]() | testHashCode | 0 |
TestOptionsWithoutGetPrefix
![]() | interfaceOptionsWithoutGetPrefixWork | 0.004 |
![]() | classOptionsWithoutGetPrefixWork | 0.002 |
TestValidationFailure
![]() | testHelpRequested | 0.003 |
![]() | invalidNumberThrowsException | 0.009 |
![]() | optionAfterUnparsedThrowsException | 0.003 |
![]() | missingMandatoryOptionThrowsException | 0.002 |
![]() | missingValueForOptionThrowsException | 0.004 |
![]() | missingValueInListWithMinimumOfOneThrowsException | 0.003 |
![]() | missingValueInListWithMinimumOfTwoThrowsException | 0.003 |
![]() | valueThatDoesNotMatchThrowsException | 0.003 |
![]() | unusedAdditionalValueThrowsException | 0.005 |
![]() | unexpectedAdditionalValueInListWithMaximumOfOneThrowsException | 0.005 |
![]() | unexpectedAdditionalValueInListWithMaximumOfTwoThrowsException | 0.004 |
![]() | unexpectedAdditionalValueInListWithExactArityThrowsException | 0.004 |
![]() | unexpectedAdditionalValueInListWithExactMultiValuedArityThrowsException | 0.004 |
![]() | unusedUnparsedValueThrowsException | 0.004 |
![]() | unexpectedOptionThrowsException | 0.002 |
![]() | unexpectedTrailingValueThrowsException | 0.002 |
![]() | multipleUnexpectedTrailingValuesThrowsException | 0.001 |
![]() | unexpectedValueThrowsException | 0.002 |
![]() | multipleUnexpectedValuesThrowsException | 0.002 |
TestArgumentParserImpl
![]() | testParseArgumentsOnlyUnparsedSeperator | 0.004 |
![]() | testParseShortArguments | 0.002 |
![]() | testParseArguments | 0.001 |
![]() | testParseArgumentsNotUparsed | 0.002 |
![]() | testParseArgumentsUnparsed | 0.004 |
![]() | testParseArgumentsOnlyUnparsed | 0.001 |
![]() | testParseAssignedValue | 0.001 |
TestArgumentValidatorImpl
![]() | testMissingOption | 0.01 |
skipped | ||
![]() | testMultipleValue | 0.01 |
skipped | ||
![]() | testMultipleValueEndOfArguments | 0.011 |
skipped | ||
![]() | testMultipleValueNotEndOfArguments | 0.011 |
skipped | ||
![]() | testAdjacentShortOptions | 0.011 |
skipped | ||
![]() | testSingleValue | 0.011 |
skipped | ||
![]() | testExtraOption | 0.011 |
skipped | ||
![]() | testMissingValue | 0.012 |
skipped | ||
![]() | testUnexpectedValue | 0.012 |
skipped | ||
![]() | testMissingMultipleValue | 0.012 |
skipped | ||
![]() | testOptionAndUnparsed | 0.012 |
skipped | ||
![]() | noUnparsedSpecificationAndNoUnparsedOptionsIsValid | 0.012 |
skipped |
TestArgumentValidatorImpl2
![]() | testMissingOption | 0.004 |
![]() | testMultipleValue | 0.003 |
![]() | testMultipleValueEndOfArguments | 0.003 |
![]() | testMultipleValueNotEndOfArguments | 0.003 |
![]() | testAdjacentShortOptions | 0.005 |
![]() | testSingleValue | 0.002 |
![]() | testExtraOption | 0.003 |
![]() | testMissingValue | 0.001 |
![]() | testUnexpectedValue | 0.003 |
![]() | testMissingMultipleValue | 0.003 |
![]() | testOptionAndUnparsed | 0.003 |
TestCliImpl
![]() | testSingleOption | 0.13 |
![]() | testSingleBooleanOption | 0.011 |
![]() | testIntegerOption | 0.022 |
![]() | testInvalidIntegerOption | 0.022 |
![]() | testInvalidIntOption | 0.012 |
![]() | testInvalidOption | 0.004 |
![]() | testSingleOptionalOption | 0.013 |
![]() | testSingleOptionalOptionRequestMissing | 0.006 |
![]() | testCharacterValue | 0.01 |
![]() | testInvalidCharacterValue | 0.008 |
![]() | testMethodWithArguments | 0.002 |
![]() | testMethodWithMissingAnnotation | 0.005 |
![]() | testListOptionMissingValue | 0.008 |
![]() | testEnumDefaultList | 0.011 |
TestOptionSpecificationImpl
![]() | testSumary | 0.005 |
![]() | testToString | 0.005 |
![]() | testIsMultiValued | 0.002 |
![]() | testGetType | 0.002 |
![]() | testGetName | 0.002 |
![]() | testGetShortName | 0.002 |
![]() | testGetLongName | 0.001 |
![]() | testMultipleLongNames | 0.005 |
![]() | testEmptyLongNameIsNotAllowed | 0.01 |
![]() | testHasValue | 0.002 |
![]() | testHasShortName | 0.001 |
![]() | testIsOptional | 0.002 |
TestEnumOptionExample
![]() | specifiedSingleValueEnumOptionGivesEnumValue | 0.003 |
![]() | specifiedMultivaluedEnumOptionGivesListOfEnumValues | 0.003 |
TestOptionGenericTypes
![]() | genericTypeWithAConstructorTakingTypeIsPassedTheGenericReturnTypeOfTheMethod | 0.015 |
![]() | stringConstructorIsPreferedToConstructorContainingType | 0.009 |
![]() | genericTypesCanBeUsedAsOptionValues | 0.008 |
TestArgumentCollectionBuilder
![]() | testParseArgumentsOnlyUnparsedSeperator | 0.021 |
![]() | testParseArguments | 0.001 |
![]() | testParseArgumentsNotUparsed | 0.001 |
![]() | noOptionsProducesUnparsed | 0.001 |
![]() | testParseArgumentsUnparsed | 0.001 |
![]() | testParseArgumentsMisplacedValue | 0 |
TestConvertTypeOfObject
![]() | argumentConversionTakesPlaceOnGet | 0 |
![]() | argumentConversionCanConvertFromStringToPrimitive | 0 |
![]() | argumentConversionCanConvertFromStringToChar | 0 |
![]() | argumentConversionCannotConvertFromStringToChar | 0.001 |
![]() | argumentConversionTakesPlaceOnGetOfIterable | 0.001 |
![]() | argumentConversionTakesPlaceOnGetOfCollection | 0.001 |
![]() | argumentConversionTakesPlaceOnGetOfList | 0.001 |
![]() | argumentConversionTakesPlaceOnGetOfSet | 0.001 |
TestHelpMessages
![]() | optionWithDefaultShowAsOptional | 0.002 |
![]() | hiddenOptionNotIncludedInHelp | 0.002 |
![]() | hiddenUnparsedOptionNotIncludedInHelp | 0.001 |
TestClassOptionalUnparsedOption
![]() | testOptionalUnparsedOptionPresent | 0.006 |
![]() | testOptionalUnparsedOptionMissing | 0.003 |
Failure Details
[Summary] [Package List] [Test Cases]