/vscode-test-pilot

Automatically generate test base templates for JavaScript and TypeScript functions.

Primary LanguageTypeScriptMIT LicenseMIT

Banner

Demo presentation gif

VsCode Test Pilot

This extension permits to easily create test boilerplate for given functions.

Find the extension on the Visual Studio Marketplace.

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:

{
  // 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.

Green chemistry icon used in the logo created by Fazrian Zahrawani - Flaticon

License

Published under the MIT License.