Skip to content

RST-192: refactor headless api#223

Merged
unkn0wn-root merged 5 commits intomainfrom
RST-192_refactor_headless_api
Apr 16, 2026
Merged

RST-192: refactor headless api#223
unkn0wn-root merged 5 commits intomainfrom
RST-192_refactor_headless_api

Conversation

@unkn0wn-root
Copy link
Copy Markdown
Owner

  • redesign the public headless API: replace flat Opt with grouped Options/StateOptions/EnvironmentOptions/etc.
  • unify JSON/text/JUnit encoding through internal/runfmt - both headless and runner now share one formatting path
  • json.Marshal(headless.Report) now produces the same output as WriteJSON (durations as Ms, summary nested)
  • compute failure status from evidence fields (Error, Canceled, Trace.Breaches, failed tests) instead of trusting the Status field blindly

  - replace Opt-based config with grouped Options types
  - clarify the public headless package structure
  - unify report JSON/text/JUnit encoding through internal/runfmt
  - make json.Marshal match WriteJSON for the public report contract
@unkn0wn-root unkn0wn-root self-assigned this Apr 16, 2026
@unkn0wn-root unkn0wn-root merged commit 3b9af30 into main Apr 16, 2026
2 checks passed
@unkn0wn-root unkn0wn-root deleted the RST-192_refactor_headless_api branch April 16, 2026 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant