Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Testify - Unit Test HelperNew to Visual Studio Code? Get it now.
Testify - Unit Test Helper

Testify - Unit Test Helper

San3a

|
5 installs
| (0) | Free
A VSCode extension to help you create unit test files quickly and easily.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Unit Test Helper

A Visual Studio Code extension that helps you quickly create unit test files for your source code files. It works by generating a test file in the closest test directory relative to the current file, or in the same directory if no test directory is found.

Features

  • Automatically generates a test file for the currently active source code file and opens it in new tab when you run Testify: Create Test File command.
  • Searches for the nearest test directory (test, __test__, tests, __tests__) to place the new test file. If none is found, it creates the test file in the same directory as the source file.
  • Opens the test file that corresponds to the currently active source code file.
  • Opens the source file that corresponds to the currently active test file.
  • Creates test files for multiple selected files in the Explorer view.
  • Creates test files for all files in the currently selected directory.
  • Provides informative error messages if the operation cannot be completed (e.g., if the active file is already a test file or if a test file already exists).

Commands

  • Testify: Create Test File: Generates a unit test file for the currently active source code file.
  • Testify: Open Test File: Opens the test file corresponding to the currently active source code file.
  • Testify: Open Source File: Opens the source code file corresponding to the currently active test file.
  • Testify: Create Test Files: Generates unit test files for all selected files in the Explorer view or for all files in the selected directory.

Configurations

Open source file: Toggles the command to open the source file from a test file automatically.

Open test file: Toggles the command to open the test file from a source file automatically.

Test Directory Names: Configurable list of directory names to search for test files (default: test, __test__, tests, __tests__).

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