trep — Test Report Generator¶
trep converts test result files and coverage data into self-contained, searchable HTML reports — no external runtime dependencies. Drop it into any CI pipeline and get a filterable, portable view of your test run in a single file.
Features¶
- Self-contained HTML — one
.htmlfile, no external scripts, fonts, or stylesheets; attach to a PR, email it, or open locally - Multi-format input — JUnit XML, Google Test XML,
go test -json, TAP 12/13, LCOV, Go coverprofile, Cobertura, Clover - Live search & filter — debounced search across suite and test names; filter by pass / fail / skip / flaky
- Multi-file merge — combine N result files into one unified report, or keep them separate with
--no-merge - Delta badges — compare any two runs with
--baselineto see pass/fail/coverage changes - CI-first design —
--failexits 1 on failures or missed thresholds;--annotateemits GitHub or GitLab inline annotations - Auto-detection — extension and content sniffing; no
--formatflag needed in most cases - Shell completions — bash, zsh, fish, and PowerShell via
trep completion <shell>
Quick install¶
Homebrew:
Go install:
Scoop (Windows):
See the Installation guide for all options including pre-built binaries.
Quick start¶
# Test results → HTML report
trep test results.xml
# Coverage → HTML report
trep cov coverage.out
# Both, cross-linked, with thresholds
trep report \
--tests results.xml \
--cov coverage.out \
--threshold 80 --fail-tests --fail-cov
See Commands & Flags and Examples for the full reference.