Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Mocha Test Runner (alpha)New to Visual Studio Code? Get it now.
Mocha Test Runner (alpha)

Mocha Test Runner (alpha)

mujichOk

|
965 installs
| (0) | Free
Mocha test runner
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

mocha-test-runner

This is early alpha of Mocha Tests Runner extension that allow run mocha tests in more fluent way in vscode. (autodetect mocha.opts location and use all acceptable for runner params like: --require, --compilers, --timeout and etc.)

Settings

You can provide some aditional settings for your workspace

"mocha.path": {
    "type": "string",
    "default": "",
    "description": "Alternative path to mocha script"
}
"mocha.optsPath": {
    "type": "string",
    "default": "",
    "description": "Alternative path to mocha.opts file"
}

Run all tests

Mocha: Run all tests

that command runs all tests in project

Run all tests in file

Mocha: Run all tests in file

that command runs all tests in current active file

Demo

Demo

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft