Fork me on GitHub

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
95 0 0 0 100% 3.639 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.392 s
dev.metaschema.cli.processor.command 15 0 0 0 100% 0.127 s
dev.metaschema.cli.processor 50 0 0 0 100% 3.120 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.148 s
CompletionScriptGeneratorTest 15 0 0 0 100% 0.148 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.079 s
ShellCompletionCommandTest 8 0 0 0 100% 0.039 s
CommandServiceTest 1 0 0 0 100% 0.009 s

dev.metaschema.cli.processor

- Class Tests Errors Failures Skipped Success Rate Time
CallingContextTest$ParseOptionsTests 2 0 0 0 100% 0.039 s
CallingContextTest$WrapTextTests 2 0 0 0 100% 0.030 s
CLIProcessorTest$VersionOutputTests 1 0 0 0 100% 0.016 s
CallingContextTest$ValidateCalledCommandsTests 3 0 0 0 100% 0.038 s
CallingContextTest$ApplyGlobalOptionsTests 2 0 0 0 100% 0.013 s
CLIProcessorTest$VersionOutputTests 1 0 0 0 100% 0.017 s
CallingContextTest 0 0 0 0 0% 0.302 s
ExitCodeTest 2 0 0 0 100% 0.591 s
CallingContextTest$WrapTextTests 2 0 0 0 100% 0.223 s
CLIProcessorTest$VersionOutputTests 2 0 0 0 100% 0.022 s
CLIProcessorTest$VersionOutputTests 2 0 0 0 100% 0.174 s
CLIProcessorTest$CommandExecutionTests 4 0 0 0 100% 0.049 s
CLIProcessorTest$NoColorModeTests 1 0 0 0 100% 0.008 s
CLIProcessorTest$CommandExecutionTests 0 0 0 0 0% 0.027 s
CLIProcessorTest$NoColorModeTests 2 0 0 0 100% 0.021 s
CLIProcessorTest$GlobalOptionsTests 1 0 0 0 100% 0.328 s
CallingContextTest$WrapTextTests 1 0 0 0 100% 0.014 s
CallingContextTest$ParseOptionsTests 1 0 0 0 100% 0.012 s
CallingContextTest$ValidateExtraArgumentsTests 4 0 0 0 100% 0.077 s
CallingContextTest$WrapTextTests 6 0 0 0 100% 0.063 s
CLIProcessorTest 0 0 0 0 0% 0.537 s
CallingContextTest$ApplyGlobalOptionsTests 1 0 0 0 100% 0.027 s
CLIProcessorTest$VersionOutputTests 1 0 0 0 100% 0.009 s
CallingContextTest$CheckHelpAndVersionTests 3 0 0 0 100% 0.122 s
CallingContextTest$WrapTextTests 4 0 0 0 100% 0.069 s
CLIProcessorTest$GlobalOptionsTests 2 0 0 0 100% 0.292 s

Test Cases

[Summary] [Package List] [Test Cases]

CallingContextTest$ParseOptionsTests

throwsOnMultipleInvalidOptions 0.015 s
throwsOnInvalidOption 0.009 s

CallingContextTest$WrapTextTests

handlesEmptyIndent 0.015 s
throwsWhenMaxWidthIsNegative 0.015 s

CLIProcessorTest$VersionOutputTests

testVersionOutputContainsDescriptiveText 0.016 s

CallingContextTest$ValidateCalledCommandsTests

returnsEmptyWhenAllCommandsValid 0.013 s
returnsErrorWhenRequiredOptionMissing 0.012 s
returnsEmptyWhenRequiredOptionProvided 0.004 s

CallingContextTest$ApplyGlobalOptionsTests

appliesBothQuietAndNoColor 0.006 s
appliesNoColorOption 0.007 s

CLIProcessorTest$VersionOutputTests

testVersionOutputContainsExpectedElement(String, String)[5] 0.017 s

ExitCodeTest

testExitMessage 0.004 s
testExitThrown 0.004 s

CallingContextTest$WrapTextTests

throwsWhenIndentExceedsMaxWidth 0.022 s
throwsWhenIndentGreaterThanMaxWidth 0.006 s

CLIProcessorTest$VersionOutputTests

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

CLIProcessorTest$VersionOutputTests

testVersionOutputContainsExpectedElement(String, String)[2] 0.017 s
testVersionOutputContainsExpectedElement(String, String)[1] 0.011 s

CLIProcessorTest$CommandExecutionTests

testValidCommandExecution 0.009 s
testUnknownCommand 0.011 s
testInvalidOption 0.021 s
testEmptyArgs 0.008 s

CLIProcessorTest$NoColorModeTests

testNoColorWithHelp 0.008 s

CLIProcessorTest$NoColorModeTests

testNoColorWithVersion 0.005 s
testNoColorOptionAccepted 0.011 s

CLIProcessorTest$GlobalOptionsTests

testQuietOption 0.022 s

CallingContextTest$WrapTextTests

forceBreakPreservesAllCharacters 0.014 s

CallingContextTest$ParseOptionsTests

parsesValidOptions 0.012 s

CompletionScriptGeneratorTest

testZshIncludesAllCommands 0.016 s
testZshHeader 0.005 s
testZshFileTypeCompletion 0.002 s
testZshEnumCompletion 0.003 s
testBashHeader 0.011 s
testZshCommandDescriptions 0.003 s
testZshScriptNotEmpty 0.002 s
testZshIncludesOptions 0.003 s
testBashFallbackFunctions 0.002 s
testBashEnumCompletion 0.007 s
testBashIncludesAllCommands 0.006 s
testBashScriptNotEmpty 0.002 s
testBashFileTypeCompletion 0.007 s
testBashIncludesOptions 0.007 s
testBashExtraArgumentFileCompletion 0.003 s

CompletionTypeRegistryTest

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

CallingContextTest$ValidateExtraArgumentsTests

returnsEmptyWhenArgumentsValid 0.008 s
returnsEmptyWhenNoTargetCommand 0.012 s
returnsErrorWhenTooManyArguments 0.035 s
returnsErrorWhenRequiredArgumentMissing 0.016 s

CallingContextTest$WrapTextTests

preservesTextContentAfterWrapping 0.012 s
handlesTextWithNoSpaces 0.017 s
forceBreakProducesCorrectLineLengths 0.016 s
handlesVeryNarrowWidthWithWordBoundaries 0.003 s
usesCorrectIndentationForContinuationLines 0.010 s
throwsWhenMaxWidthIsZero 0.005 s

CommandServiceTest

testGetCommandsThreadSafety()[4] 0.023 s
testGetCommandsThreadSafety()[5] 0.005 s
testGetCommandsThreadSafety()[3] 0.006 s
testGetCommandsThreadSafety()[2] 0.006 s
testGetCommandsThreadSafety()[1] 0.005 s
testGetCommandsReturnsCachedInstances 0.001 s

CallingContextTest$ApplyGlobalOptionsTests

appliesQuietOption 0.011 s

CLIProcessorTest$VersionOutputTests

testVersionOutputContainsExpectedElement(String, String)[6] 0.009 s

ShellCompletionCommandTest

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

CommandServiceTest

testDiscoversSpiCommands 0.009 s

CallingContextTest$CheckHelpAndVersionTests

returnsEmptyForOtherArgs 0.083 s
returnsExitStatusForHelpOption 0.019 s
returnsExitStatusForVersionOption 0.016 s

CallingContextTest$WrapTextTests

wrapsTextAtWordBoundary 0.033 s
returnsTextUnchangedWhenShorterThanMaxWidth 0.010 s
handlesSingleWordLongerThanWidth 0.011 s
returnsTextUnchangedWhenExactlyMaxWidth 0.015 s

CLIProcessorTest$GlobalOptionsTests

testHelpOption 0.275 s
testVersionOption 0.017 s