Run only the tests a code change could break
A command-line tool has Jev score each test against your code change and runs just the ones at risk, falling back to the full suite when unsure.
Author's figure: one run on the tool's own repository took 1,296 ms and cost about $0.00098 (mizchi). Reported by the builder, not measured by us.
The use case
Small software teams wait on full test suites for tiny changes. A public tool by mizchi reads a git diff, sends it once to Jev, and asks one question per test: how likely is this change to alter its result? Jev returns a score on four levels, and tests at or above a cutoff are passed to your runner, and it works with common runners such as vitest, Playwright and the Go and Rust test commands. Doubtful cases still run, and the whole suite runs when the key is missing, the diff is truncated or anything errors. Scoring varies near the cutoff, so keep a full run in your merge pipeline.
Example workflow
- Install the tool and add a TypeSafe API key; ignore the folder it uses for saved runs in git.
- Run it against your branch with a dry run first and read the JSON scores to see which tests it picks.
- Compare its picks with what you would choose by hand on a few real changes and adjust the cutoff.
- Use its exec mode to run the selected tests locally or in a pre-push step.
- Keep a full test run on the main branch before release so selection mistakes are caught.
Tools
- Jev (TypeSafe)
- jev-test-filter
- Git
- vitest, Playwright, cargo test or another runner
Risks and guardrails
- Static scoring can miss tests that reach changed code indirectly; keep the full suite in CI.
- Results near the cutoff can differ between runs; do not treat a skipped test as proven safe.
- Saved run records list test names and paths; keep that folder out of version control.
Sources
Written by Agents Lookup. Credits and official pages for the tools this use case names:
- jev-test-filter repository by mizchi: github.com/mizchi/jev-test-filter
- jev-test-filter on Made with Jev: madewithjev.com/builds/jev-test-filter
- Playwright MCP server (official page): github.com/microsoft/playwright-mcp (checked 2026-11-09)