feat(reports): add --report-tap to write a TAP v13 file#751
Merged
Conversation
Writes results in TAP version 13 to a file (parallels --report-html and --report-junit): ok/not ok per test with a YAML diagnostic on failure, and # SKIP / # TODO directives for skipped/incomplete/risky tests. Complements the existing streaming '--output tap'. Closes #740
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.
Summary
Adds
--report-tap <file>(andBASHUNIT_REPORT_TAP) — writes results in TAP version 13 to a file, parallel to--report-html/--report-junit.This is the file variant; the existing
--output tapstreams TAP to stdout. They are complementary.Output shape:
oknot ok+ YAML diagnostic (ANSI-stripped, newline-collapsed, quote-escaped)# SKIP, incomplete →# TODOTests
tests/unit/reports_test.sh): header/plan, ok, not ok + message, SKIP, TODO, tracking-gate.tests/acceptance/bashunit_report_tap_test.sh): end-to-end file is valid TAP.make sa+make lintpass; green under Bash 3.2--strict --parallel --simple.Docs:
docs/command-line.md+bashunit test --help. CHANGELOG updated under Unreleased → Added.Closes #740