Reporters & CI in Vitest

From the Vitest cheat sheet · CLI & Watch Mode · verified Nov 2026

Reporters & CI

Choose reporters, find generated reports, and shard runs across CI machines

bash
vitest run --reporter=verbose      # every test name
vitest run --reporter=dot          # compact
vitest run --reporter=junit        # .vitest/junit/output.xml
vitest run --reporter=json --outputFile=results.json
vitest run --reporter=default --reporter=github-actions
📌 v5: json and junit write files under .vitest/ instead of stdout
⚡ github-actions annotations turn on automatically in GitHub Actions
💡 Shard with blob reports, then --merge-reports for one final report
⚠️ test.only fails the run in CI unless allowOnly is set
reporterscijunitsharding

Continue with Vitest

Save the full cheat sheet or work through every related task.

More Vitest tasks

Back to the full Vitest cheat sheet