Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/corentinth/vscode-test-pilot
Automatically generate test base templates for JavaScript and TypeScript functions.
https://github.com/corentinth/vscode-test-pilot
extension jest mocha template test unit-testing vitest vscode vscode-extension
Last synced: 5 days ago
JSON representation
Automatically generate test base templates for JavaScript and TypeScript functions.
- Host: GitHub
- URL: https://github.com/corentinth/vscode-test-pilot
- Owner: CorentinTh
- License: mit
- Created: 2023-06-05T08:25:00.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-18T15:15:25.000Z (over 1 year ago)
- Last Synced: 2024-10-27T20:43:09.768Z (about 2 months ago)
- Topics: extension, jest, mocha, template, test, unit-testing, vitest, vscode, vscode-extension
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=cthmsst.test-pilot
- Size: 3.27 MB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
![Banner](https://github.com/CorentinTh/vscode-test-pilot/blob/main/assets/readme-banner.png?raw=1)
![Demo presentation gif](https://github.com/CorentinTh/vscode-test-pilot/blob/main/assets/demo-presentation.gif?raw=1)
# VsCode Test Pilot
This extension permits to easily create test boilerplate for given functions.
Find the extension on the [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=cthmsst.test-pilot).
## Features
- Trigger the refactor on a function name
- Create test boilerplate for a given function
- Update tests when a test file is already present## Configuration
You can configure the extension with the following settings:
```js
{
// Prefix for test files, default: 'test'
"testPilot.testFileExtensionPrefix": "spec",// Add the extension in the import statement, default: false
"testPilot.addExtensionInImport": true,// Extra imports to add in the new test file, default: []
"testPilot.extraImportsForNewTestFiles": ["import { expect } from 'chai';"]
}
```## Credits
Coded with love by [Corentin Thomasset](https://github.com/CorentinTh).
Green chemistry icon used in the logo created by [Fazrian Zahrawani - Flaticon](https://www.flaticon.com/free-icon/green-chemistry_8181284?term=green+chemistry&page=1&position=20&origin=search&related_id=8181284 'Green chemistry icons')
## License
Published under the [MIT License](./LICENSE.md).