Skip to content

feat: add structured JSON output to test command#270

Open
ayushshukla1807 wants to merge 1 commit intomicrocks:masterfrom
ayushshukla1807:master
Open

feat: add structured JSON output to test command#270
ayushshukla1807 wants to merge 1 commit intomicrocks:masterfrom
ayushshukla1807:master

Conversation

@ayushshukla1807
Copy link
Copy Markdown

The current test command only provides human-readable output. To support integrations with tools like the upcoming VS Code extension, structured data is required.

This PR adds an --output (or -o) flag to the test command. When set to json, the command suppresses progress logging and prints the final TestResultSummary as a JSON object.

Example:
microcks-cli test <api:version> <endpoint> <runner> -o json

@lbroudoux
Copy link
Copy Markdown
Member

Hey @ayushshukla1807!
Thanks for taking the time to submit this PR. Can you check the failing DCO check? This is a prerequisite for CNCF projects. Thanks!

Signed-off-by: Ayush Shukla <ayushshukla1807@gmail.com>
@ayushshukla1807
Copy link
Copy Markdown
Author

I've amended the commit to include the DCO sign-off (-s) as requested. Ready for review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants