Skip to content
| Marketplace
Sign in
Visual Studio Code>Testing>Cucumber.js Test RunnerNew to Visual Studio Code? Get it now.
Cucumber.js Test Runner

Cucumber.js Test Runner

Paweł Stefański

|
42 installs
| (1) | Free
Run and debug your Cucumber.js scenarios directly in the Visual Studio Code editor. This extension provides seamless integration for running tests, viewing results, and streamlining your BDD workflow.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-cucumber-js-test-runner

GitHub stars
⭐️ If you like this extension, please consider giving it a star on GitHub! ⭐️

Cucumber.js

Cucumber.js Test Runner for VS Code
Node.js required GPLv3


This VS Code extension allows you to run Cucumber.js tests directly from your editor with zero manual configuration.

✨ Features

  • 🚀 Run individual Cucumber.js feature files or all tests in your project
  • 🌳 Automatic test tree discovery and display
  • ⏱️ Test execution time tracking
  • 📋 Test output display in the Testing panel
  • ⚡ No need to create a config file manually

🥒 Full Gherkin Support

This extension fully supports the Gherkin language and all its advanced features for Behavior-Driven Development (BDD), including:

  • Scenario Outline: Write parameterized scenarios with Examples tables
  • Background: Define common steps for all scenarios in a feature
  • Tags: Organize and filter your scenarios and features with tags
  • Rules: Group related scenarios under business rules
  • Examples: Use multiple sets of data for Scenario Outlines
  • Step Arguments: Support for Data Tables and DocStrings
  • Comments & Descriptions: Rich support for documentation within your features
  • Multilingual: Gherkin keywords in multiple languages

With this extension, you can leverage the full power of Gherkin for expressive, maintainable, and scalable BDD specifications.

🚀 Highly Optimized for Running Single Scenarios

This extension is highly optimized for running individual scenarios directly from the editor. You do not need to use special tags like @focus or @skip to isolate or exclude scenarios—just use the built-in test runner UI to run exactly the scenario you want, instantly.

⚙️ Requirements

  • VS Code version 1.59.0 or higher
  • Node.js installed on your system
  • Cucumber.js (version 7.x or newer) installed in your project (npm install @cucumber/cucumber)

Compatibility: This extension supports Cucumber.js version 7.x and newer, relying on the official Gherkin AST/messages format introduced in Cucumber.js 7.x.

🔧 How It Works & Configuration

You do not need to create a Cucumber.js configuration file yourself. The extension automatically detects your project's configuration, generates its own config file based on it, and saves it in your project root every time you run tests.

The generated config file (e.g. cucumber.json-test-runner.json, cucumber.js-test-runner.js, etc.) can be safely added to your .gitignore because it is recreated on every test run and does not need to be versioned.

Example .gitignore entry:

cucumber*-test-runner.*

🚦 Usage

  1. Open a Cucumber feature file (.feature)
  2. Use the Testing panel to:
    • Run individual tests
    • Run all tests
    • View test results and execution time
    • See test output

📄 License

This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.

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