Skip to content
| Marketplace
Sign in
Visual Studio Code>Testing>Cucumber JS Test ExplorerNew to Visual Studio Code? Get it now.
Cucumber JS Test Explorer

Cucumber JS Test Explorer

Laurence Hartgill

|
378 installs
| (0) | Free
Run cucumber.js tests in the Visual Studio Code test explorer
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Cucumber.js test explorer for VS Code

This extension uses the Test Explorer API in vscode to run your cucumber.js tests.

screenshot

Features

  • Supports monorepos and multi-root workspaces
  • Run your tests from feature files or the Test Explorer
  • Debug your step definitions and support code with breakpoints
  • Failures are parsed to provide links to source code
  • Uses the Cucumber.js javascript API for tight integration.
  • Performs a "dry run" to discover the tests that apply to your configuration(s)

Requirements

  • @cucumber/cucumber node module in your project.
  • Some *.feature files.

Extension Settings

This extension contributes the following settings:

Key Description Default
cucumberJsTestExplorer.cwd Working directory, relative to the workspace root Workspace root
cucumberJsTestExplorer.configFile Path to the cucumber.js configuration file, relative to cwd The cucumber.js default
cucumberJsTestExplorer.profiles Cucumber.js configuration profiles to use None
cucumberJsTestExplorer.envFiles .env files to load and pass to the cucumber.js runner, relative to cwd None
cucumberJsTestExplorer.env Environment variables to load and pass to the cucumber.js runner. Overrides any variables with the same name in .env files None

Multiple configurations

The above configuration can be repeated multiple times under the cucumberJsTestExplorer.virtualFolders key to support multiple test controllers. This is useful for running different profiles or to support different test projects in a monorepo.

In this scenario the root level configuration (if supplied) is overridden by each virtual folder configuration.

EXAMPLE

{
  "cucumberJsTestExplorer.cwd": "e2e",
  "cucumberJsTestExplorer.envFiles": [".env"],
  "cucumberJsTestExplorer.virtualFolders": [
    {
      "name": "Safari",
      "profiles": ["safari"]
    },
    {
      "name": "Chrome",
      "profiles": ["chrome"]
    },
    {
      "name": "iPad",
      "profiles": ["ipad"]
    },
    {
      "name": "Android phone",
      "profiles": ["android_phone"],
      "envFiles": [".env.android"]
    },
  ]
}

Release Notes

See CHANGELOG.md

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