Run browser extension tests inline from VS Code. Unit tests with stateful Chrome API mocking, flakiness tracking, and live test results — all without leaving your editor.
Features
- ▶ Run CodeLens — Click
▶ Runabove anytest()orit()to run it - Test Explorer sidebar — See results in the Extrig tree view with pass/fail icons
- Inline diagnostics — Failed tests show as errors in the editor gutter
- Status bar integration — Live test progress while running
- Watch mode — Re-run tests on file changes
Getting Started
-
Install the
extrigCLI in your extension project:pnpm add -D extrig npx extrig init -
Open any test file and click
▶ Runabove a test, or:Ctrl+Shift+P→ Extrig: Run All TestsCtrl+Shift+P→ Extrig: Start Watch Mode
Requirements
extrigmust be installed in your project (pnpm add -D extrig)- VS Code 1.85+
Commands
| Command | Description |
|---|---|
Extrig: Run All Tests |
Run every test in the project |
Extrig: Run Tests in File |
Run tests in the active editor |
Extrig: Start Watch Mode |
Watch for file changes and re-run |
License
MIT