Skip to content
/ vs-test Public

Run focused unit tests. (Like vim-tests, but for VS Code.)

Notifications You must be signed in to change notification settings

ignu/vs-test

Repository files navigation

Vs-Test

Adding the power of vim-test to VS Code

Features

  • Run Focused Test - if you're in a test file, run the test under the cursor
  • Run Test File - Run all the tests in the file

Configuration

Global

  • vstest.runIn - either "terminal" or "iTerm"
  • vstest.focusIterm - If true, will activate iTerm on test runs

JavaScript

  • vstest.jest.command - The path to the Jest binary, or an npm command to run tests prefixed with -- e.g. node_modules/.bin/jest or npm test --
  • vstest.jest.flags - Flags to pass to jest

Elixir

  • vstest.elixir.command - The command to start the elixir test runner
  • vstest.elixir.flags - Flags to pass elixir tests

Vim Keybindings

If you want functionality like vim-test and are using the Vim extension, add the following to your settings.json

"vim.normalModeKeyBindingsNonRecursive": [
  {
    "before": ["t"],
    "commands": [
      "vstest.runFocusedTest"
    ]
  },
  {
    "before": ["T"],
    "commands": [
      "vstest.runCurrentTestFile"
    ]
  }
],

About

Run focused unit tests. (Like vim-tests, but for VS Code.)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •