Reporters: JSON and JUnit XML output formats #14
Labels
No labels
area:assertions
area:cli
area:client
area:harness
area:meta
area:reporting
area:runner
type:user-story
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/ws-rpc-test#14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
User story
As a CI maintainer, I want machine-readable test reports in JSON and JUnit XML, so that my CI system can parse pass/fail counts, post comments on PRs, and surface per-test details on the dashboard.
Acceptance criteria
Reporter trait
Reportertrait abstracts the three output modes (Console, Json, Junit), picked fromRunConfig.format: OutputFormat.start_run,start_test,end_test,end_run.JSON
--format jsonwrites a single JSON object to stdout at the end of the run:JUnit XML
--format junitwrites a<testsuites>document with one<testsuite>per run.<testcase>with<failure>(assertion errors),<error>(other errors), or<skipped>children as appropriate.messageattribute and<failure>body.time(seconds) per testcase andtimeaggregate per testsuite.General
--no-color.References