Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Test FreshnessNew to Visual Studio Code? Get it now.
Test Freshness

Test Freshness

Fabsgb

|
1 install
| (0) | Free
Shows whether Python, JavaScript, Go, or Rust test results are current for this workspace.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Test Freshness

A workspace-local VS Code extension that shows whether the configured full test suite for a supported language passed against the current workspace.

The status bar starts at Tests: not run. Use Tests: Run All and Update Freshness from the Command Palette, or click the status bar item. A passing run shows current; any subsequent workspace edit changes it to out of date while the workspace differs from the tested snapshot. Restoring the original contents restores the previous test status. The extension records a content snapshot before each run and checks it after file changes and periodically. Watcher events update only affected file hashes; a metadata reconciliation runs once per minute and before/after tests. Generated and dependency directories such as .git, .venv, __pycache__, and node_modules are excluded. The last completed test result and its snapshot are stored per workspace, then checked against the files when the workspace opens again.

Supported built-in profiles:

Language Default command
Python python3 -m unittest discover -s ./tests -p 'test_*.py'
JavaScript/TypeScript node --test
Go go test ./...
Rust cargo test

Set pythonTestFreshness.testLanguage to auto, python, javascript, go, or rust. Auto mode detects the workspace by checking for Python test directories, package.json, go.mod, and Cargo.toml.

Configure pythonTestFreshness.testExecutable, pythonTestFreshness.pythonPath, pythonTestFreshness.testArgs, or pythonTestFreshness.testCwd in VS Code settings to match another interpreter or test runner. The Python interpreter uses python.defaultInterpreterPath when configured, otherwise it falls back to python3 (python on Windows).

Run from this repository

Open the vscode-test-freshness folder in VS Code and press F5. The Extension Development Host opens with the status item active. The extension uses only the VS Code API and Node.js built-ins; no npm dependencies are required.

Run the extension's focused state tests with:

npm test
node --test test/state.test.js
node --test test/snapshot.test.js
node --test test/runner.test.js
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft