Bun Generate Code Coverage Reports with the Bun Test Runner
Generate code coverage reports with the Bun test runner
Install
npx skills add jarle/bun-skills --skill Bun Generate code coverage reports with the Bun test runnergit clone --depth 1 https://github.com/jarle/bun-skills.git /tmp/bun-skills
mkdir -p ~/.claude/skills
cp -r /tmp/bun-skills/skills/bun-guides-test-coverage ~/.claude/skills/Bun-Generate-code-coverage-reports-with-the-Bun-test-runnerPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Generate code coverage reports with the Bun test runner
Bun's test runner supports built-in *code coverage reporting*. This makes it easy to see how much of the codebase is covered by tests and find areas that are not currently well-tested.
***
Pass the `--coverage` flag to `bun test` to enable this feature. This will print a coverage report after the test run.
The coverage report lists the source files that were executed during the test run, the percentage of functions and lines that were executed, and the line ranges that were not executed during the run.
```sh terminal icon="terminal" theme={"theme":{"light":"github-light","dark":"dracula"}}
bun test --coverage
```
```txt theme={"theme":{"light":"github-light","dark":"dracula"}}
test.test.ts:
✓ math > add [0.71ms]
✓ math > multiply [0.03ms]
✓ random [0.13ms]
-------------|---------|---------|-------------------
File | % Funcs | % Lines | Uncovered Line #s
-------------|---------|---------|-------------------
All files | 66.67 | 77.78 |
math.ts | 50.00 | 66.67 |
random.ts | 50.00 | 66.67 |
-------------|---------|---------|-------------------
3 pass
0 fail
3 expect() calls
```
***
To always enable coverage reporting by default, add the following line to your `bunfig.toml`:
```toml bunfig.toml icon="settings" theme={"theme":{"light":"github-light","dark":"dracula"}}
[test]
coverage = true # always enable coverage
```
***Details
- Skill name
Bun Generate code coverage reports with the Bun test runner- Repository
- jarle/bun-skills
- Path
skills/bun-guides-test-coverage/SKILL.md- License
- MIT
- Repo updated
- 24 February 2026
FAQ
What does the Bun Generate Code Coverage Reports with the Bun Test Runner skill do?
Generate code coverage reports with the Bun test runner
How do I install the Bun Generate Code Coverage Reports with the Bun Test Runner skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add jarle/bun-skills --skill Bun Generate code coverage reports with the Bun test runner. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Bun Generate Code Coverage Reports with the Bun Test Runner popular?
It lives in jarle/bun-skills, which has 9 GitHub stars and 1 forks.
Related skills
Bun Archive
9jarle/bun-skills
Create and extract tar archives with Bun's fast native implementation
Bun Auto Install
9jarle/bun-skills
Bun's automatic package installation feature for standalone script execution
Bun Bun Add
9jarle/bun-skills
Add packages to your project with Bun's fast package manager
Bun Import, Require, and Test Svelte Components with Bun Test
9jarle/bun-skills
import, require, and test Svelte components with bun test
Bun Finding Tests
9jarle/bun-skills
Learn how Bun's test runner discovers and filters test files in your project
Bun Lifecycle Hooks
9jarle/bun-skills
Learn how to use beforeAll, beforeEach, afterEach, and afterAll lifecycle hooks in Bun tests
Browse the most popular Claude skills, all testing & qa skills, or write your own with the skills generator.