Skip to content

feat: add output-file support to test command - #649

Open
aniket866 wants to merge 1 commit into
microcks:masterfrom
aniket866:feat/test-output-file-junit
Open

aniket866 wants to merge 1 commit into
microcks:masterfrom
aniket866:feat/test-output-file-junit

Conversation

@aniket866

Copy link
Copy Markdown
Contributor

Summary

Adds --output-file support to the microcks test command.

Test results can now be written directly to a file for CI/CD artifacts, caching, and downstream tooling.

Example:

microcks test ... --output json --output-file results.json

Supported output formats include the existing text, JSON, YAML, and GitHub Actions formats.

Behavior

  • Existing stdout behavior is unchanged when --output-file is omitted.
  • When provided, the formatted test result is written to the specified file.
  • The output file is created or truncated as needed.
  • No JUnit formatter is included in this PR.

Tests

  • Added coverage verifying JSON test results are written to the requested file.
  • Focused command tests pass.

Ai disclosure: chatgpt is used to review related files and implement

Closes #386

Signed-off-by: aniket866 <iamaniketkumarmaner@gmail.com>

This branch was successfully deployed

1 active deployment
Build — ec30a487 Deployed Nov 29, 2026 by aniket866 via build-verify-package #926
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.

feat: add JUnit XML output format and --output-file flag for CI/CD test reporting

1 participant