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
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
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
ShellCompletionCommandTest
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
CommandServiceTest
| testDiscoversSpiCommands | 0.037 s | |
| testGetCommandsThreadSafety()[4] | 0.023 s | |
| testGetCommandsThreadSafety()[5] | 0.010 s |
CompletionScriptGeneratorTest
CLIProcessorTest$VersionOutputTests
| testVersionOutputContainsExpectedElement(String, String)[1] | 0.008 s |
AnsiTest$DisabledMode
| setEnabledFalseSuppressesEscapeCodes | 0.007 s | |
| setEnabledFalsePreservesPlainText | 0.004 s | |
| setEnabledFalseSuppressesFormattedColorOutput | 0.007 s |
