Skip to content

raulfdm/vscode-quick-spec

Repository files navigation

Quick Spec

build status extension version extension version Extension rating Extension Installs

usage gif

Why

Spec/Test files are a common task between developers. This extension is just about quick create those files based on the the opened one and save you of typing or copy&paste the name during the creation. :)

Installation

By using Marketplace

This extension is available for free in the Visual Studio Code Marketplace

By using vscode

  1. Open Extensions sidebar panel in VS Code. View → Extensions;
  2. Search for Quick Spec;
  3. Click Install to install it.

Using

With a file opened, just open the Command Palette (View -> Command Palette) and search for Quick Spec: create.

In a nutshell, it'll copy the opened file name and create a new one with the same name but inserting .test.

Customization

To customize how the files are generate, go to User Settings (Code → Preferences → Settings) and search for Quick Spec.

name Default Description example
quickSpec.defaultExtension .test Spec extension which will be applied for all kind of file extension "quickSpec.defaultExtension": ".spec"
quickSpec.extensionPerLanguage {} Object which accepts file extension (key) and the test extension (value). This is for when you want to create a specific test only for one kind of file "quickSpec.extensionPerLanguage": { ".go": ".spec" }

License

MIT © Raul Melo

Releases

No releases published

Packages

No packages published