jessekernaghan / vscode-extension-jest-file-runner

Visual Studio Code extension for quickly running individual test files and running tests related to individual files.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jest File Runner - VSCode Extension

This is a simple extension that automates the work of setting up and running jest cli commands against individual files. It targets specific files or related files using the --runTestsByPath and --findRelatedTests options.

Features

  • Explorer menu item for running only a specific test
  • Explorer menu item for running tests related to a specific file
  • Command palette Run Test File allows selecting a test file to be run
  • Command palette Run Related Tests allows selecting a file to run its related tests

Requirements

This extension assumes you are a developer using jest, node, and npm by default. It can be configured for other use-cases but isn't focused on them.

Extension Settings

This extension contributes the following settings:

  • jestFileRunner.testCommand: The test command to run for targeting a specific test, expect the filename and path as the last argument. Defaults to npm test -- --runTestsByPath
  • jestFileRunner.relatedTestsCommand: The test command to run for targeting a file's related tests, expect the filename and path as the last argument. Defaults to npm test -- --findRelatedTests
  • jestFileRunner.quietMode: Hides VSCode popups when JestFileRunner commands are run, defaults to true.

Release Notes

Users appreciate release notes as you update your extension.

1.0.0

Initial release of JestFileRunner

1.0.2

Fix package json and activation event

Following extension guidelines

Ensure that you've read through the extensions guidelines and follow the best practices for creating your extension.

Download Extension

Currently not pushed to the marketplace, but you can download the latest package here: jest-file-runner-1.0.2.vsix

About

Visual Studio Code extension for quickly running individual test files and running tests related to individual files.


Languages

Language:TypeScript 81.3%Language:JavaScript 18.7%