Repository navigation
fix(test): print operation failure details in test get text output - #622
Merged
Merged
Conversation
…s#608) Signed-off-by: ish-g09 <ig.valiente09@gmail.com>
ish-g09
requested review from
Caesarsage,
Harsh4902,
lbroudoux and
yada
as code owners
November 7, 2026 08:53
Signed-off-by: Harshvardhan Parmar <harshparmar4902@gmail.com>
Signed-off-by: Harshvardhan Parmar <harshparmar4902@gmail.com>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
When running
microcks test get <testResultId>on a failed test in default text mode, the CLI was previously downcasting the result into aTestResultSummaryand dropping all theTestCaseResults. This meant it just printed the same 1-line table astest listwithout showing which operation actually failed or what the error message was.This PR wires
test getin text mode to use the existingTextFormatter(similar to howmicrocks testrenders results):output.NewFormatter(output.FormatText)incmd/testQuery.goso failed operations and their messages are printed directly in the terminal.TextFormatterinpkg/output/text_formatter.goto displayIN_PROGRESSwhen a test is still running so it isn't falsely marked asFAILURE.--output jsonuntouched so IDE and VS Code integrations remain completely unaffected.cmd/test_query_test.goandpkg/output/output_test.go.Related issue(s)
Fixes #608
AI Disclosure
The code changes and unit tests were written and verified by me. I used an AI assistant to discuss edge cases.
Testing
go vet ./...: clean (0 warnings)go test -v ./pkg/output/...: all 11 tests passgo test -v -run TestTestGetCommandOutputsText ./cmd/...: passes