bun-test
Bun test runner with compact agent-friendly output. Use when running bun tests, targeting a pattern, collecting --coverage, watching, or emitting JUnit XML for CI.
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 59
- Forks
- 6
01 前言 Front Matter
- args
- [pattern] [--coverage] [--bail] [--watch]
- name
- bun-test
- created
- 1766188800000
- modified
- 1785196800000
- reviewed
- 1766188800000
- description
- Bun test runner with compact agent-friendly output. Use when running bun tests, targeting a pattern, collecting --coverage, watching, or emitting JUnit XML for CI.
- allowed-tools
- Bash, Read
- argument-hint
- [test-pattern] [--coverage] [--bail] [--watch]
03 SKILL.md 正文
/bun:test
Run tests using Bun's built-in test runner with optimized output.
When to Use This Skill
| Scenario | Use this skill | Alternative |
|---|---|---|
| Quickly running tests with compact output | Yes | N/A |
| Running a specific test file or pattern | Yes | N/A |
| Running tests with coverage | Yes | N/A |
| Configuring test runner options in detail | No - use bun-development |
Full test configuration guidance |
| Debugging failing tests interactively | No - use typescript-debugging |
Inspector-based debugging |
Parameters
pattern(optional): Test file or name pattern--coverage: Enable code coverage reporting--bail: Stop on first failure--watch: Watch mode for development
Execution
Quick feedback (default for agentic use):
bun test --dots --bail=1 $PATTERN
With coverage:
bun test --dots --coverage $PATTERN
Filter by test name (not file path):
bun test --dots --bail=1 -t "pattern"
Watch mode:
bun test --watch $PATTERN
CI mode (JUnit output):
bun test --reporter=junit --reporter-outfile=junit.xml $PATTERN
Output Interpretation
| Symbol | Meaning |
|---|---|
. |
Test passed |
F |
Test failed |
S |
Test skipped |
Post-test
- Report pass/fail summary
- If failures: show first failure details
- If coverage enabled: report coverage percentage
04 同仓库更多 Skills
kitty-show-image
Show the user an image with a note on what to judge, via a file send or a labelled kitty tab. Use when the user must see an image, or icat fails with no /dev/tty.
kitty-session-persistence
Snapshot and restore kitty terminal sessions on macOS. Use when surviving WindowServer hangs without losing tabs, configuring snapshots, or restoring after a force-reboot.
kitty-remote-control
Safe kitty remote control from an agent — read panes with kitty @ ls/get-text, notify, and never mutate the live terminal unasked. Use when running inside kitty.
docs-reference-check
Dangling doc-reference gate: flag markdown naming repo paths or relative links that no longer exist. Use when docs cite moved/deleted files, or wiring a doc-drift lint.
youtube-upload
Upload a video to YouTube via the Data API v3 and edit its title, description, tags or thumbnail afterwards. Use when publishing or retitling a YouTube video.
youtube-studio-share
Share a private YouTube video with a whole Google Workspace organization by scripting YouTube Studio in the browser. Use when a video must be org-only.