guides
Setup guides by test runner
Every guide is a complete, copy-paste GitHub Actions workflow checked against the real runner. Each one handles empty shards, keeps pull requests from overwriting timings, and prevents pattern-matching runners from executing files twice.
- pytest JUnit XML (xunit1) · File arguments read →
- Jest JUnit XML (jest-junit) · Anchored escaped regex read →
- Vitest Two-column (--format lines) · include from BUNPO_TESTS_FILE read →
- RSpec JUnit XML (rspec_junit_formatter) · File arguments read →
- Playwright JUnit XML (classname + prefix) · --test-list read →
| Runner | Report format | How exact files are passed | record flags |
|---|---|---|---|
| pytest | JUnit XML (junit_family=xunit1) | File arguments after -- | — |
| Jest | JUnit XML (jest-junit) | Anchored escaped regex per file | — |
| Vitest | Inline full-cost reporter (--format lines) | include from BUNPO_TESTS_FILE | --format lines |
| RSpec | JUnit XML (rspec_junit_formatter) | File arguments after -- | — |
| Playwright | Built-in JUnit reporter | --test-list | --file-from classname --path-prefix tests |
Using another runner? Write one <path> <milliseconds> line per
passing file (and <path> - for a failed file) and pass bunpo record --format lines.