Skip to content

YouneselBarnoussi/vscode-BDD-Python-test-adapter

Repository files navigation

Python Behave Test Explorer for Visual Studio Code

Visual Studio Marketplace Version Visual Studio Marketplace Downloads Visual Studio Marketplace Rating

This extension allows you to run Python Behave tests in the Visual Studio Code test explorer.

Features

  • Shows a Test Explorer in the Test view in VS Code's sidebar with all detected tests and suites and their state
  • Adds CodeLenses to your test files for starting and debugging tests
  • Shows a failed test's log when the test is selected in the explorer
  • Shows step definition in feature file on ctrl+click and/or F12.

Getting started

  • Install the extension and restart VS Code
  • Open the test view
  • Run your tests using the run icon in the Test Explorer

If there is no python interpreter defined in Visual Studio Code the global python interpreter will be used.

print.feature.-.Behave.-.Visual.Studio.Code.2023-04-19.16-45-35.mp4

Configuration

The following configuration properties are available

Key Description Default
behaveTestAdapter.featuresFolderPath The path of the features folder ${workspaceFolder}/features
behaveTestAdapter.enableDefintionProvider Whether definition provider will be enabled or not true

Questions, issues, feature requests, and contributions

  • If you have any question or a problem with the extension, please file an issue.