bun test --coverage

Category: Node.js & npm/yarn

bun test --coverage

Run bun tests with coverage reporting

Executes the test suite and measures how much of the code the tests exercise, printing line and branch coverage percentages. Coverage thresholds can gate CI builds. The text report is the default format.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.