Fork me on GitHub

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
117 0 0 0 100% 5.073 s

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
dev.metaschema.cli.processor.completion 30 0 0 0 100% 0.341 s
dev.metaschema.cli.processor.command 15 0 0 0 100% 0.393 s
dev.metaschema.cli.processor.ansi 22 0 0 0 100% 0.292 s
dev.metaschema.cli.processor 50 0 0 0 100% 4.047 s

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

dev.metaschema.cli.processor.completion

- Class Tests Errors Failures Skipped Success Rate Time
CompletionScriptGeneratorTest 7 0 0 0 100% 0.165 s
CompletionTypeRegistryTest 15 0 0 0 100% 0.111 s
CompletionScriptGeneratorTest 8 0 0 0 100% 0.065 s

dev.metaschema.cli.processor.command

- Class Tests Errors Failures Skipped Success Rate Time
ShellCompletionCommandTest 8 0 0 0 100% 0.038 s
CommandServiceTest 2 0 0 0 100% 0.054 s
CommandServiceTest 2 0 0 0 100% 0.188 s
ShellCompletionCommandTest 0 0 0 0 0% 0.043 s
CommandServiceTest 3 0 0 0 100% 0.070 s

dev.metaschema.cli.processor.ansi

- Class Tests Errors Failures Skipped Success Rate Time
AnsiTest 0 0 0 0 0% 0.151 s
AnsiTest$DisabledMode 3 0 0 0 100% 0.019 s
AnsiTest 19 0 0 0 100% 0.122 s

dev.metaschema.cli.processor

- Class Tests Errors Failures Skipped Success Rate Time
ExitCodeTest 2 0 0 0 100% 0.266 s
CLIProcessorTest 0 0 0 0 0% 0.506 s
CallingContextTest$WrapTextTests 2 0 0 0 100% 0.485 s
CallingContextTest$ValidateCalledCommandsTests 3 0 0 0 100% 0.037 s
CLIProcessorTest$VersionOutputTests 5 0 0 0 100% 0.053 s
CallingContextTest$ValidateExtraArgumentsTests 2 0 0 0 100% 0.034 s
CallingContextTest$WrapTextTests 2 0 0 0 100% 0.029 s
CLIProcessorTest$NoColorModeTests 3 0 0 0 100% 0.028 s
CallingContextTest$WrapTextTests 2 0 0 0 100% 0.022 s
CallingContextTest$ParseOptionsTests 1 0 0 0 100% 0.017 s
CallingContextTest$ValidateExtraArgumentsTests 1 0 0 0 100% 0.053 s
CallingContextTest$ApplyGlobalOptionsTests 2 0 0 0 100% 0.041 s
CallingContextTest$WrapTextTests 1 0 0 0 100% 0.011 s
CallingContextTest$ValidateExtraArgumentsTests 1 0 0 0 100% 0.007 s
CallingContextTest$ParseOptionsTests 2 0 0 0 100% 0.050 s
CallingContextTest$WrapTextTests 3 0 0 0 100% 0.032 s
CallingContextTest$ApplyGlobalOptionsTests 1 0 0 0 100% 0.024 s
CallingContextTest$CheckHelpAndVersionTests 1 0 0 0 100% 0.387 s
CallingContextTest$WrapTextTests 1 0 0 0 100% 0.016 s
CLIProcessorTest$GlobalOptionsTests 3 0 0 0 100% 0.364 s
CallingContextTest$WrapTextTests 4 0 0 0 100% 0.342 s
CallingContextTest$CheckHelpAndVersionTests 1 0 0 0 100% 0.325 s
CLIProcessorTest$CommandExecutionTests 2 0 0 0 100% 0.105 s
CLIProcessorTest$CommandExecutionTests 2 0 0 0 100% 0.130 s
CallingContextTest$CheckHelpAndVersionTests 1 0 0 0 100% 0.036 s
CLIProcessorTest$VersionOutputTests 1 0 0 0 100% 0.004 s
CLIProcessorTest$VersionOutputTests 1 0 0 0 100% 0.133 s
CallingContextTest 0 0 0 0 0% 0.510 s

Test Cases

[Summary] [Package List] [Test Cases]

ExitCodeTest

testExitMessage 0.019 s
testExitThrown 0.004 s

CallingContextTest$WrapTextTests

throwsWhenIndentExceedsMaxWidth 0.019 s
throwsWhenIndentGreaterThanMaxWidth 0.014 s

CallingContextTest$ValidateCalledCommandsTests

returnsEmptyWhenAllCommandsValid 0.010 s
returnsErrorWhenRequiredOptionMissing 0.011 s
returnsEmptyWhenRequiredOptionProvided 0.014 s

CLIProcessorTest$VersionOutputTests

testVersionOutputContainsExpectedElement(String, String)[5] 0.024 s
testVersionOutputContainsExpectedElement(String, String)[6] 0.012 s
testVersionOutputContainsExpectedElement(String, String)[4] 0.003 s
testVersionOutputContainsExpectedElement(String, String)[2] 0.007 s
testVersionOutputContainsExpectedElement(String, String)[3] 0.007 s

CallingContextTest$ValidateExtraArgumentsTests

returnsEmptyWhenNoTargetCommand 0.014 s
returnsErrorWhenTooManyArguments 0.020 s

CallingContextTest$WrapTextTests

usesCorrectIndentationForContinuationLines 0.017 s
throwsWhenMaxWidthIsZero 0.012 s

CLIProcessorTest$NoColorModeTests

testNoColorWithHelp 0.005 s
testNoColorWithVersion 0.010 s
testNoColorOptionAccepted 0.007 s

CallingContextTest$WrapTextTests

handlesEmptyIndent 0.007 s
throwsWhenMaxWidthIsNegative 0.015 s

CallingContextTest$ParseOptionsTests

parsesValidOptions 0.017 s

CallingContextTest$ValidateExtraArgumentsTests

returnsErrorWhenRequiredArgumentMissing 0.011 s

CompletionScriptGeneratorTest

testBashFallbackFunctions 0.007 s
testBashEnumCompletion 0.010 s
testBashIncludesAllCommands 0.009 s
testBashScriptNotEmpty 0.007 s
testBashFileTypeCompletion 0.001 s
testBashIncludesOptions 0.002 s
testBashExtraArgumentFileCompletion 0.008 s

ShellCompletionCommandTest

testShellEnumValues 0.005 s
testExtraArguments 0.005 s
testCommandDescription 0.002 s
testShellFromStringInvalid 0.002 s
testOptions 0.008 s
testShellFromStringBash 0.009 s
testCommandName 0.003 s
testShellFromStringZsh 0.004 s

CommandServiceTest

testGetCommandsThreadSafety()[3] 0.025 s
testGetCommandsThreadSafety()[2] 0.029 s

CallingContextTest$ApplyGlobalOptionsTests

appliesNoColorOption 0.010 s
appliesQuietOption 0.005 s

CallingContextTest$WrapTextTests

handlesVeryNarrowWidthWithWordBoundaries 0.011 s

CallingContextTest$ValidateExtraArgumentsTests

returnsEmptyWhenArgumentsValid 0.007 s

CallingContextTest$ParseOptionsTests

throwsOnMultipleInvalidOptions 0.014 s
throwsOnInvalidOption 0.017 s

CallingContextTest$WrapTextTests

preservesTextContentAfterWrapping 0.008 s
handlesTextWithNoSpaces 0.008 s
forceBreakProducesCorrectLineLengths 0.016 s

CallingContextTest$ApplyGlobalOptionsTests

appliesBothQuietAndNoColor 0.024 s

CallingContextTest$CheckHelpAndVersionTests

returnsExitStatusForVersionOption 0.018 s

CallingContextTest$WrapTextTests

forceBreakPreservesAllCharacters 0.016 s

CLIProcessorTest$GlobalOptionsTests

testHelpOption 0.337 s
testVersionOption 0.017 s
testQuietOption 0.009 s

CallingContextTest$WrapTextTests

wrapsTextAtWordBoundary 0.306 s
returnsTextUnchangedWhenShorterThanMaxWidth 0.021 s
handlesSingleWordLongerThanWidth 0.010 s
returnsTextUnchangedWhenExactlyMaxWidth 0.005 s

CallingContextTest$CheckHelpAndVersionTests

returnsEmptyForOtherArgs 0.325 s

CLIProcessorTest$CommandExecutionTests

testInvalidOption 0.087 s
testEmptyArgs 0.018 s

CommandServiceTest

testGetCommandsThreadSafety()[1] 0.016 s
testGetCommandsReturnsCachedInstances 0.001 s

CLIProcessorTest$CommandExecutionTests

testValidCommandExecution 0.010 s
testUnknownCommand 0.013 s

CallingContextTest$CheckHelpAndVersionTests

returnsExitStatusForHelpOption 0.036 s

CLIProcessorTest$VersionOutputTests

testVersionOutputContainsDescriptiveText 0.004 s

CompletionTypeRegistryTest

testUrlCompletionTypeZsh 0.039 s
testLookupUrl 0.001 s
testLookupUri 0.005 s
testUriCompletionTypeZsh 0.002 s
testLookupNull 0.001 s
testLookupFile 0.003 s
testForEnumBashCompletion 0.002 s
testUrlCompletionTypeBash 0.007 s
testRegisterEnum 0.006 s
testFileCompletionTypeBash 0.003 s
testFileCompletionTypeZsh 0.002 s
testForEnumZshCompletion 0.002 s
testRegisterCustomType 0.001 s
testLookupUnregistered 0.003 s
testUriCompletionTypeBash 0.004 s

CommandServiceTest

testDiscoversSpiCommands 0.037 s
testGetCommandsThreadSafety()[4] 0.023 s
testGetCommandsThreadSafety()[5] 0.010 s

CompletionScriptGeneratorTest

testZshIncludesAllCommands 0.023 s
testZshHeader 0.002 s
testZshFileTypeCompletion 0.003 s
testZshEnumCompletion 0.014 s
testBashHeader 0.005 s
testZshCommandDescriptions 0.002 s
testZshScriptNotEmpty 0.008 s
testZshIncludesOptions 0.008 s

CLIProcessorTest$VersionOutputTests

testVersionOutputContainsExpectedElement(String, String)[1] 0.008 s

AnsiTest$DisabledMode

setEnabledFalseSuppressesEscapeCodes 0.007 s
setEnabledFalsePreservesPlainText 0.004 s
setEnabledFalseSuppressesFormattedColorOutput 0.007 s

AnsiTest

fgBrightYellowEmitsBrightYellowSequence 0.003 s
fgBrightCyanEmitsBrightCyanSequence 0.003 s
formatUsesPrintfSemantics 0.010 s
fgBrightWhiteViaColorEnum 0.011 s
resetEmitsResetSequence 0.008 s
fluentReassignmentPreservesSingleBuilder 0.005 s
toStringIsIdempotent 0.004 s
fgRedEmitsRedSequence 0.005 s
fgBrightMagentaViaColorEnum 0.009 s
boldEmitsBoldSequence 0.005 s
preservesLiteralPercentInText 0.009 s
chainingBoldAndText 0.005 s
fgBrightBlueEmitsBrightBlueSequence 0.009 s
emptyBuilderRendersEmpty 0.010 s
appendCharRendersSingleCharacter 0.005 s
fgBrightRedEmitsBrightRedSequence 0.004 s
appendStringRendersPlainText 0.004 s
chainingColorTextReset 0.006 s
boldOffEmitsBoldOffSequence 0.007 s