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

Jump to Test

Blake Herrington

|
6,551 installs
| (6) | Free
Open spec/test file based on current file's name
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-jump-to-test README

This extension registers a command that will open the corresponding test file of the current file open in your editor. It does this based on the file name of the current file and searches for a test file that matches the current file name's pattern.

Features

When the command is issued, your editor will jump to the test file if the extension is able to find one.

If it is unable find a test file, you will see a message in the status bar indicating the failure (see below).

The extension should be able to successfully take you between files named in the following patterns, agnostic of extensions:

FileName.js -> FileName.spec.js FileName.spec.js -> FileName.js

FileName.js -> FileName.test.js FileName.test.js -> FileName.js

file_name.rb -> file_name_test.rb file_name_test.rb -> file_name.rb

file_name.rb -> file_name_spec.rb file_name_spec.rb -> file_name.rb

FileName.java -> FileNameTest.java FileNameTest.java -> FileName.java

FileName.java -> FileNameSpec.java FileNameSpec.java -> FileName.java

Release Notes

All releases are experimental at this point as I test things in the marketplace.

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