https://github.com/matdurand/sidetest
A VSCode extension to navigate from and to test files
https://github.com/matdurand/sidetest
javascript testing vscode-extension
Last synced: 5 months ago
JSON representation
A VSCode extension to navigate from and to test files
- Host: GitHub
- URL: https://github.com/matdurand/sidetest
- Owner: matdurand
- License: mit
- Created: 2018-01-28T15:36:17.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-03-17T15:47:59.000Z (over 2 years ago)
- Last Synced: 2024-03-17T16:31:47.287Z (over 2 years ago)
- Topics: javascript, testing, vscode-extension
- Language: JavaScript
- Size: 116 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# VSCode Side Test
Side test is a VSCode extension that make it easy to navigate to a test file from your source file. You can either just open the test file when in a source file, or make it open in a side by side, very useful when doing TDD.
## Extension Settings
If you test files are located in the same source folder as the matching source files:
- `sidetest.unitTest.subFolder`: the subfolder to look in to find the test file for a source file. **default is null, meaning the test file is in the same folder as the source file.**
If your test files are located in a separate root folder:
- `sidetest.unitTest.rootFolder`: the root folder containing the test files (relative to workspace folder)
- `sidetest.source.rootFolder`: the root folder containing the source files (relative to workspace folder)
In either mode, you can specify the following options:
- `sidetest.unitTest.preExtensionSuffix`: the suffix to add before the file extension to find the matching test. Common suffix are 'test' and 'spec'. **Default is [spec]**
- `sidetest.unitTest.prefix`: the prefix to add before the source filename. No default
- `sidetest.unitTest.suffix`: the suffix to add after the source filename. No default
- `sidetest.createTestIfMissing`: When set to true, the test file will be created if you try to open it and it doesn't exist. **false by default**
## Commands
### Open test file
This will open the test file for the currently open source file in a new tab.
### Open test file side by side
This is the same as 'Open test file' but the test file is opened in a side-by-side view using VSCode split editor.
### Open source file
This will open the source file for the currently open test file in a new tab.
### Open source file side by side
This is the same as 'Open source file' but the source file is opened in a side-by-side view using VSCode split editor.
## Release Notes
### 1.0.0
Initial release