While working on a project in my organization, We followed a pattern to keep tests files outside the main source directory. (Same structure as this). It was working fine until the project got bigger. It was becoming really very difficult to mimic the same directory structure as the source file and create a test file in it manually. So this extension solves the problem. It helps you to quickly generate test files with many possible customizations.
Create test file from the file explorer view/editor title view or from the editor.
Specifying the default location to keep the test files. Currently supports
Location same as the file location.
If for some reasons default locations don't work for you. Don't worry, you can specify the custom location as well.
Custom name for the test directory.
Ability to specify the various template(s) to use for test files for the different languages.
Automatically switching to test cases when you create them.
How to use this extension?
same location as source file
1. same location as source file, 2. project root
Location where you want to keep the test files.
any string value
Name of directory which contains all source files. This directory is not created when generating the directory structure for the test file.
any string value (allows empty string)
Name of the directory which should contain all the test files. If this config option value is set to an empty string then it keeps the test file next to the source file.
any valid path
Set this property in case you want to specify the custom location for test files.