Skip to content
| Marketplace
Sign in
Visual Studio Code>Testing>node test runnerNew to Visual Studio Code? Get it now.
node test runner

node test runner

Madaka Heri

|
3 installs
| (0) | Free
node --test ruuner
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

node test runner

This VS Code extension adds inline controls above Node.js test declarations so you can execute individual tests or entire files without leaving the editor.

Run Button

You can also trigger every test in the file from the header CodeLens.

File View

Usage

  • The first line of every test file shows Run All | --watch | Stop. These commands run, watch, or stop all test() calls in the current file.
  • Each test(), it(), and describe() line displays Run | --watch | Stop, letting you control a single test or suite in place.
  • Run executes node --test --test-name-pattern "^<test name>$" <file>, so only the selected test runs.
  • --watch runs node --test --watch --test-name-pattern "^<test name>$" <file> and reruns the same test whenever the file changes. The header --watch omits the pattern so the entire file is watched.
  • Stop closes the workspace’s “Node Test Runner” terminal, ending any active watch session.
  • The Command Palette exposes the same actions: Node Test Runner: Run test, Run test (watch), Run file, Run file (watch), and Stop watch.

Features

Run button

Shows above each test definition and executes only that test via node --test.

--watch button

Runs the same command with --watch, rerunning on every save.

Stop button

Disposes the dedicated terminal so the associated watch session ends immediately.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft