Live Test Runner
Save a file. Tests run. Results appear inline. No terminal. No config.
Works with Jest (incl. Create React App), Vitest, Angular and pytest — zero config.
🌐 Website · 📖 Read the full guide — or run Live Test Runner: Open Guide in VS Code.

Quick Start
- Open a Jest, Vitest, Angular or pytest project in VS Code
- Click the beaker icon in the Activity Bar
- Click ▶ Start Testing
- Save any file — only the tests it affects rerun
No config, no extra installs. The framework (and, for pytest, the virtual environment) is detected from your project.
Needs VS Code 1.82 or newer.
What you get
- ⚡ Reruns on save — only the tests that ran the code you changed. Changes from
git pull or a branch switch rerun too.
- 🌳 Test tree — every file, suite and test on open. Score cards (Total · Passed · Failed, plus Running while tests run) filter it with one click.
- 🎨 In the editor — ✓ / ✗ gutter icons, inline durations,
▶ Run · ▷ Debug · ◈ Results above every test.
- ❌ Failures where they happen — the reason on the failing line (
✗ Expected 3, received 2); hover for the full message, Show diff, and Update snapshot for a changed Jest, Vitest or Angular snapshot (asks first).
- 📊 Coverage — green / amber / red bars per line; hover a line to see which tests ran it. Always the current numbers: delete a test or a file and they follow. The bars never shift your code and follow your edits; hide them with the 👁 button in the editor title.
- 🔍 Results panel — test list · console output (per test) · failures with the diff and location · Copy for AI (the failure with the test's code, for pasting into a chat).
- 🤖 Your AI assistant uses it — Copilot, Cursor, Claude Code, Codex and Gemini CLI read failures, output and coverage themselves and rerun the tests their change affects. ✨ Fix with AI on any failing test; failures also show in the Problems panel.
- 🗂 Monorepos and multi-root workspaces — every package (or Python service / uv workspace member) is a project, each with its own
.venv or the shared one; switch between them, run several at once.
- ⏱ Timeline Debugger (planned, not available yet) — step through a finished test line by line.


Jest, Vitest, Angular and pytest
- Jest (incl. Create React App) and Vitest — any UI framework: React, Vue, Svelte, Astro, Angular… if Jest or Vitest runs it, it works.
- Angular 21+ (Vitest through
ng test) — apps and libraries of a workspace; results, per-test output, coverage (with @vitest/coverage-v8), ▶ Run / ▷ Debug. Nothing written into the project (no .angular/ cache).
- Both in one project (migrating?) — each test file runs with its own framework; the tree groups them. Override with
liveTestRunner.frameworks.
- pytest (≥ 7, Python ≥ 3.12) — runs in your project's own
.venv / poetry / pipenv env — the Explorer shows which one (🐍 Python 3.12 · .venv · pytest 9.1); click it to pick another. Same results as pytest in your terminal, per-test output, ▶ Run / ▷ Debug, coverage via coverage (no pytest-cov needed).
- Nothing is written into your project — no installs, no config changes, no cache or coverage files. (Update snapshot rewrites a snapshot only when you confirm it.)

AI assistants
Your assistant gets LTR_ tools: what fails and why (error, failing line, test code, output, the lines it ran), which tests a change affects, coverage gaps, and runs that report what a fix fixed and what it broke. It never starts or stops testing; that stays with you.
| Assistant |
Setup |
| GitHub Copilot (VS Code 1.95+), Cursor |
None |
| Claude Code, Codex CLI, Gemini CLI |
One command, from Connect Your AI Assistant |
| Windsurf, Cline, other MCP clients |
A snippet for their global MCP settings (same page) |
Then just ask: "use Live Test Runner to fix the failing tests". The extension calls no AI service and opens no port; your assistant reads only what it asks for (privacy).
Commands
| Command |
What it does |
Start Testing |
Run all tests and start watching |
Stop Testing |
End the session |
Stop Testing and Clear Cache |
Stop + delete this project's cached data |
Clear Cache and Restart Testing |
Fresh restart |
Clear All Cached Data |
Delete every project's cached data (asks first) |
Select Project |
Switch the project shown (same as the Explorer's switcher) |
Select Project Root |
Pin Live Test Runner to one folder (or back to all projects) |
Select Python Interpreter |
pytest projects: choose the Python environment that runs the tests (remembered per project) |
Stop All Projects |
Stop every running project |
Show Logs |
Open the extension log (filter by level) |
Show Test Output |
Open the raw test-runner output |
Copy Diagnostic Report |
Copy versions, setup and recent logs for a bug report |
Open Guide |
Open the user guide in an editor tab |
Connect Your AI Assistant |
Set up Copilot, Cursor, Claude Code, Codex, Gemini CLI and others |
Fix Failing Test with AI |
Ask your AI assistant to fix the failing test under the cursor |
Tip: Shift-click ⏹ Stop to stop and clear cache in one click.
Troubleshooting
- Output → "Live Test Runner" — what the extension did: one line per run, warnings when something falls back. Set the level to Debug (⚙ in the Output panel) for details.
- Output → "Live Test Runner: Test Output" — exactly what Jest / Vitest / pytest printed.
- Reporting a bug? Run Copy Diagnostic Report and attach it.
Configuration
All settings under liveTestRunner.*.
| Setting |
Default |
Description |
projectRoot |
"" |
Pin to one project root; empty = detect every project in the workspace |
maxRunningProjects |
"auto" |
Projects running at once: auto = 2 (1 on ≤ 4 cores or < 8 GB total memory), or a number |
runMode |
"auto" |
"auto" calls Jest directly; "npm" delegates to npm test (Jest only) |
jestCommand |
"" |
Override Jest binary path |
vitestCommand |
"" |
Override the Vitest command (e.g. npx vitest); empty = the project's own Vitest |
frameworks |
{} |
Jest + Vitest projects: glob → "jest" / "vitest" for those test files |
vitestTrace |
true |
Vitest execution trace: covering tests on hover, and saves rerun only the tests that ran the file |
vitestIncludeBrowserProjects |
false |
Also run Vitest browser-mode projects (need Playwright / WebdriverIO browsers) |
pythonPath |
"" |
pytest: the Python that runs the tests; empty = automatic (selected interpreter, the project's venv, the Python extension's, PATH) |
pytestArgs |
[] |
pytest: extra arguments for every run, e.g. ["-m", "not slow"] (your addopts already apply) |
onSaveDebounceMs |
300 |
Debounce delay after save (ms) |
speed |
balanced |
Where test runs start: full, balanced, light (cool and quiet); runs adapt to how busy your machine is |
speedStrict |
false |
Keep runs exactly at the speed level |
hangTimeoutSeconds |
300 |
Stop a single test running longer than this (e.g. an infinite loop) and mark it failed; 0 = no limit |
testFilePatterns |
["**/*.test.*", "**/*.spec.*", "**/__tests__/**/*.*"] |
Which files appear in the test tree. Jest's own config still decides what runs, and files it runs are added even when no pattern matches |
showFailuresInEditor |
true |
A failed test's message after the line where it failed, with Show diff in the hover |
showFailuresInProblems |
true |
List failing tests in the Problems panel (your editor's AI quick fixes work on them) |
ai.bridge |
true |
Give your AI assistant the LTR_ tools (read results, run tests) |
ai.allowRuns |
"always" |
Whether your assistant can run tests: always, ask (a dialog per run) or never (read only) |
ai.fixWithAI |
true |
Show ✨ Fix with AI on failing tests |
showCoverageInEditor |
true |
Coverage bars and hover in the editor (also the 👁 button in the editor title) |
coverageExclude |
[] |
Extra globs left out of the coverage totals (which otherwise follow your Vitest coverage.include / exclude or Jest collectCoverageFrom) |
durationThresholds.testAmberMs |
100 |
Test turns amber |
durationThresholds.testRedMs |
500 |
Test turns red |
durationThresholds.suiteAmberMs |
500 |
Suite turns amber |
durationThresholds.suiteRedMs |
2000 |
Suite turns red |
durationThresholds.fileAmberMs |
1000 |
File turns amber |
durationThresholds.fileRedMs |
5000 |
File turns red |
Supported frameworks
| Feature |
Jest |
CRA |
Vitest |
Angular |
pytest |
| Run & pass/fail |
✅ |
✅ |
✅ |
✅ Angular 21+ (ng test, Vitest runner) |
✅ pytest ≥ 7, Python ≥ 3.12 |
| ▶ Run / ▷ Debug one test or suite |
✅ |
✅ |
✅ |
✅ |
✅ by node id; Debug needs the Python Debugger extension |
| Rerun a saved test file |
✅ |
✅ |
✅ |
✅ |
✅ |
| Logs / console output |
✅ per file |
✅ per file |
✅ per test |
✅ per test |
✅ per test (stdout, stderr, logging) |
| Coverage (gutter, hover) — the numbers your own coverage command reports |
✅ Babel or coverageProvider: 'v8' |
✅ |
✅ needs @vitest/coverage-v8 (or -istanbul) |
✅ needs @vitest/coverage-v8 |
✅ needs coverage (pytest-cov not needed) |
| Live per-file progress |
✅ |
✅ |
✅ |
✅ |
✅ |
| Rerun tests related to a saved source file |
✅ |
✅ |
✅ only the tests that ran it (execution trace); vitest related when the trace is off |
✅ the test files that import it (relative imports); all of its project otherwise |
✅ only the tests that ran it (coverage contexts); importing test files before that |
| Monorepo / multi-project (project switcher) |
✅ one project per package; a root projects config stays one |
🟡 a CRA app is detected as a package (not e2e-tested) |
✅ one project per package; test.projects stays one, grouped by name |
✅ one project per workspace; its apps and libraries run with ng test <name>, grouped by name |
✅ one project per uv workspace member with tests; a root pytest config stays one |
| Mixed Jest + Vitest in one project |
✅ each test file runs with its own framework |
— |
✅ |
— |
— |
| JS + Python in one folder |
✅ one project runs Jest / Vitest and pytest |
🟡 not e2e-tested |
✅ |
🟡 not e2e-tested |
✅ a .py save reruns pytest only, a .js save the JS framework only |
| Execution trace / "covering tests" |
✅ |
✅ |
✅ Vitest ≥ 3 (incl. vitest.workspace files); not in browser mode |
⏳ planned |
✅ from coverage.py contexts (needs coverage) |
UI components (.vue, .svelte, .astro, .marko): save reruns, trace, coverage |
✅ through the project's transformer (vue-jest, svelte-jester…) |
— (React is plain JS) |
✅ through the project's Vite plugins |
✅ templates (templateUrl) rerun their component's tests; coverage includes templates |
— |
| Timeline debugger |
⏳ planned |
⏳ planned |
⏳ planned |
⏳ planned |
⏳ planned |
Vitest 3+ is fully supported (1–2: results only). Jest's ESM mode is picked up from your test script or .npmrc. Full details: the guide.
Known limitations
- Individual test reruns use
--testNamePattern — tests with exactly the same full name run together
- Jest captures console output per file; it shows on a single test only when that test is rerun on its own. With Vitest every test shows its own output.
- Test-level granularity and per-test console logs are only available after the background trace pass completes for a file; whole-file reruns are used as fallback
- Vitest: the execution trace needs Vitest ≥ 3 and is off for browser-mode projects — saving a source file then reruns the test files that import it (
vitest related)
- pytest with
-s / --capture=no in addopts: test output goes to the Test Output channel, not to each test
- Vue components under Jest: coverage counts the
<script> block only, as jest --coverage does (vue-jest maps only that); template lines still show their covering tests
Privacy
No telemetry. No accounts. Live Test Runner makes no network calls and calls no AI service (your AI assistant reads results only when it asks, see the policy): it runs your own Jest, Vitest, Angular or pytest locally and keeps its cache on your machine (clear it any time with Clear All Cached Data). It is MIT-licensed and open source, so your security team can review it. Links, such as those in the built-in guide, open in your browser only when you click them.
Your own tests, and VS Code itself, may use the network; that is not the extension. What it keeps, and what it shares only when you click: the privacy policy.
How to verify: every pull request runs a test that scans the source and the built extension for network modules, network APIs and telemetry packages, and checks that no view can load anything from another origin (noNetwork.test.ts; run it with pnpm test).
About
Built by EshLabs (Eshan Dias) — a software engineer who wanted live test feedback without paying for third-party tools.
⭐ Star on GitHub · 🐛 Report an issue
MIT License
| |