Fork me on GitHub

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
95 0 0 0 100% 2.890 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.361 s
dev.metaschema.cli.processor.command 15 0 0 0 100% 0.126 s
dev.metaschema.cli.processor 50 0 0 0 100% 2.403 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
CompletionTypeRegistryTest 0 0 0 0 0% 0.128 s
CompletionScriptGeneratorTest 15 0 0 0 100% 0.137 s
CompletionTypeRegistryTest 15 0 0 0 100% 0.096 s

dev.metaschema.cli.processor.command

- Class Tests Errors Failures Skipped Success Rate Time
CommandServiceTest 6 0 0 0 100% 0.080 s
ShellCompletionCommandTest 8 0 0 0 100% 0.035 s
CommandServiceTest 1 0 0 0 100% 0.011 s

dev.metaschema.cli.processor

- Class Tests Errors Failures Skipped Success Rate Time
CallingContextTest$ParseOptionsTests 1 0 0 0 100% 0.037 s
CallingContextTest$WrapTextTests 1 0 0 0 100% 0.016 s
CallingContextTest$ValidateCalledCommandsTests 2 0 0 0 100% 0.025 s
CLIProcessorTest$VersionOutputTests 1 0 0 0 100% 0.013 s
ExitCodeTest 2 0 0 0 100% 0.600 s
CallingContextTest$WrapTextTests 9 0 0 0 100% 0.154 s
CLIProcessorTest$VersionOutputTests 1 0 0 0 100% 0.014 s
CallingContextTest$ValidateExtraArgumentsTests 2 0 0 0 100% 0.008 s
CLIProcessorTest$VersionOutputTests 3 0 0 0 100% 0.149 s
CLIProcessorTest$CommandExecutionTests 3 0 0 0 100% 0.026 s
CLIProcessorTest$NoColorModeTests 1 0 0 0 100% 0.005 s
CLIProcessorTest$CommandExecutionTests 1 0 0 0 100% 0.032 s
CLIProcessorTest$NoColorModeTests 2 0 0 0 100% 0.016 s
CLIProcessorTest$GlobalOptionsTests 1 0 0 0 100% 0.285 s
CallingContextTest$WrapTextTests 1 0 0 0 100% 0.012 s
CallingContextTest$ParseOptionsTests 2 0 0 0 100% 0.016 s
CallingContextTest$ValidateExtraArgumentsTests 2 0 0 0 100% 0.082 s
CallingContextTest$ApplyGlobalOptionsTests 1 0 0 0 100% 0.004 s
CLIProcessorTest 0 0 0 0 0% 0.458 s
CallingContextTest$ApplyGlobalOptionsTests 2 0 0 0 100% 0.032 s
CLIProcessorTest$VersionOutputTests 2 0 0 0 100% 0.020 s
CallingContextTest$ValidateCalledCommandsTests 1 0 0 0 100% 0.009 s
CallingContextTest$CheckHelpAndVersionTests 3 0 0 0 100% 0.094 s
CallingContextTest$WrapTextTests 4 0 0 0 100% 0.044 s
CLIProcessorTest$GlobalOptionsTests 2 0 0 0 100% 0.252 s

Test Cases

[Summary] [Package List] [Test Cases]

CallingContextTest$ParseOptionsTests

throwsOnInvalidOption 0.018 s

CallingContextTest$WrapTextTests

handlesEmptyIndent 0.016 s

CallingContextTest$ValidateCalledCommandsTests

returnsErrorWhenRequiredOptionMissing 0.009 s
returnsEmptyWhenRequiredOptionProvided 0.003 s

CLIProcessorTest$VersionOutputTests

testVersionOutputContainsExpectedElement(String, String)[5] 0.013 s

ExitCodeTest

testExitMessage 0.006 s
testExitThrown 0.003 s

CallingContextTest$WrapTextTests

throwsWhenMaxWidthIsNegative 0.018 s
preservesTextContentAfterWrapping 0.003 s
handlesTextWithNoSpaces 0.005 s
forceBreakProducesCorrectLineLengths 0.004 s
handlesVeryNarrowWidthWithWordBoundaries 0.004 s
usesCorrectIndentationForContinuationLines 0.009 s
throwsWhenMaxWidthIsZero 0.002 s
throwsWhenIndentExceedsMaxWidth 0.014 s
throwsWhenIndentGreaterThanMaxWidth 0.012 s

CLIProcessorTest$VersionOutputTests

testVersionOutputContainsDescriptiveText 0.014 s

CallingContextTest$ValidateExtraArgumentsTests

returnsEmptyWhenArgumentsValid 0.003 s
returnsEmptyWhenNoTargetCommand 0.005 s

CLIProcessorTest$VersionOutputTests

testVersionOutputContainsExpectedElement(String, String)[2] 0.006 s
testVersionOutputContainsExpectedElement(String, String)[6] 0.004 s
testVersionOutputContainsExpectedElement(String, String)[1] 0.013 s

CLIProcessorTest$CommandExecutionTests

testInvalidOption 0.013 s
testUnknownCommand 0.011 s
testValidCommandExecution 0.002 s

CLIProcessorTest$NoColorModeTests

testNoColorWithHelp 0.005 s

CLIProcessorTest$CommandExecutionTests

testEmptyArgs 0.014 s

CLIProcessorTest$NoColorModeTests

testNoColorOptionAccepted 0.002 s
testNoColorWithVersion 0.009 s

CLIProcessorTest$GlobalOptionsTests

testQuietOption 0.023 s

CallingContextTest$WrapTextTests

forceBreakPreservesAllCharacters 0.012 s

CallingContextTest$ParseOptionsTests

parsesValidOptions 0.008 s
throwsOnMultipleInvalidOptions 0.008 s

CompletionScriptGeneratorTest

testZshIncludesAllCommands 0.016 s
testZshHeader 0.003 s
testZshFileTypeCompletion 0.003 s
testZshEnumCompletion 0.009 s
testBashHeader 0.004 s
testZshCommandDescriptions 0.009 s
testZshScriptNotEmpty 0.004 s
testZshIncludesOptions 0.007 s
testBashFallbackFunctions 0.004 s
testBashEnumCompletion 0.004 s
testBashIncludesAllCommands 0.007 s
testBashScriptNotEmpty 0.001 s
testBashFileTypeCompletion 0.003 s
testBashIncludesOptions 0.003 s
testBashExtraArgumentFileCompletion 0.004 s

CompletionTypeRegistryTest

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

CallingContextTest$ValidateExtraArgumentsTests

returnsErrorWhenTooManyArguments 0.048 s
returnsErrorWhenRequiredArgumentMissing 0.013 s

CallingContextTest$ApplyGlobalOptionsTests

appliesBothQuietAndNoColor 0.004 s

CommandServiceTest

testGetCommandsThreadSafety()[4] 0.021 s
testGetCommandsThreadSafety()[5] 0.005 s
testGetCommandsThreadSafety()[3] 0.008 s
testGetCommandsThreadSafety()[2] 0.005 s
testGetCommandsThreadSafety()[1] 0.005 s
testGetCommandsReturnsCachedInstances 0.001 s

CallingContextTest$ApplyGlobalOptionsTests

appliesNoColorOption 0.019 s
appliesQuietOption 0.007 s

CLIProcessorTest$VersionOutputTests

testVersionOutputContainsExpectedElement(String, String)[3] 0.014 s
testVersionOutputContainsExpectedElement(String, String)[4] 0.006 s

CallingContextTest$ValidateCalledCommandsTests

returnsEmptyWhenAllCommandsValid 0.009 s

ShellCompletionCommandTest

testShellEnumValues 0.004 s
testExtraArguments 0.004 s
testCommandDescription 0.001 s
testShellFromStringInvalid 0.003 s
testOptions 0.004 s
testShellFromStringBash 0.005 s
testCommandName 0.005 s
testShellFromStringZsh 0.003 s

CommandServiceTest

testDiscoversSpiCommands 0.011 s

CallingContextTest$CheckHelpAndVersionTests

returnsEmptyForOtherArgs 0.073 s
returnsExitStatusForHelpOption 0.011 s
returnsExitStatusForVersionOption 0.008 s

CallingContextTest$WrapTextTests

wrapsTextAtWordBoundary 0.021 s
returnsTextUnchangedWhenShorterThanMaxWidth 0.013 s
handlesSingleWordLongerThanWidth 0.003 s
returnsTextUnchangedWhenExactlyMaxWidth 0.007 s

CLIProcessorTest$GlobalOptionsTests

testHelpOption 0.236 s
testVersionOption 0.016 s