This extension allows you to run Python Behave tests in the Visual Studio Code test explorer.
- 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.
- 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
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 |
- If you have any question or a problem with the extension, please file an issue.