A visual test runner UI for Bun, similar to Vitest UI.
bun add -d bun-test-uibunx bun-test-uiThis starts the UI at http://localhost:51205 and auto-opens your system browser.
bunx bun-test-ui [pattern] [options]
Options:
-p, --port <number> Port to run on (default: 51205)
--no-watch Disable watch mode
--no-open Don't auto-open browserThe CLI reads your bunfig.toml for test configuration:
[test]
root = "./tests"Watch mode watches the current directory:
- Test file changes → Only that test file is re-run
- Source file changes → All tests are re-run
Uses bun-inspector-protocol to communicate with Bun's test runner via the WebSocket inspector, similar to how bun-vscode implements VS Code test runner support.
bun install
# Dev server with HMR
bun run dev
# Build for prod
bun run build
# Run prod CLI
bun run startMIT
