Skip to content

feat(cli): add --report-junit as an alias of --log-junit#711

Merged
Chemaclass merged 2 commits into
mainfrom
feat/705-report-junit-flag
Jun 8, 2026
Merged

feat(cli): add --report-junit as an alias of --log-junit#711
Chemaclass merged 2 commits into
mainfrom
feat/705-report-junit-flag

Conversation

@Chemaclass
Copy link
Copy Markdown
Member

Summary

Adds --report-junit <file> as an alias of --log-junit, giving naming parity with the existing --report-html. Both flags set BASHUNIT_LOG_JUNIT and emit the same JUnit XML.

Changes

  • --report-junit parsed alongside --log-junit in src/main.sh.
  • Help text + command-line.md table updated.
  • Acceptance test asserts the alias writes a valid JUnit report.
  • CHANGELOG.

On SARIF (the issue's other half)

Deferred deliberately. SARIF is a format for static-analysis / security findings consumed by GitHub code scanning, not for test results. Test reporting is already well served by JUnit XML and the GitHub Actions annotations (--log-gha, #704). Emitting test failures as SARIF would misuse the format. If there's a concrete code-scanning use case we can revisit it as its own issue.

Closes #705

Provides naming parity with --report-html. Both flags set
BASHUNIT_LOG_JUNIT and write the same JUnit XML report.

Closes #705
@Chemaclass Chemaclass added the enhancement New feature or request label Jun 8, 2026
@Chemaclass Chemaclass self-assigned this Jun 8, 2026
@Chemaclass Chemaclass enabled auto-merge (squash) June 8, 2026 11:22
@Chemaclass Chemaclass merged commit 2151866 into main Jun 8, 2026
31 checks passed
@Chemaclass Chemaclass deleted the feat/705-report-junit-flag branch June 8, 2026 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI reporting: --report-junit flag for parity + SARIF output

1 participant