cucumber / cucumber/vscode

Steps are not linked properly to glue code with pytest-bdd

Open
#292 1 comment 5 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
88
Forks
33
PR merge metrics
No merged PRs in 30d

Description

### 👓 What did you see?

Using Python, pytest with pytest-bdd plugin.

When steps have examples they do not match in glue code and are highlighted as not implemented.

Image

Image

does not match

Image

### ✅ What did you expect to see?

When steps are implemented using parameters they are not highlighted as not implemented.
User can Crtl+Click to step definition.

### 📦 Which tool/library version are you using?

Python 3.12
pytest-bdd==8.1.0
pytest-html==4.1.1
playwright==1.55.0
VS Code
Windows

### 🔬 How could we reproduce it?

Use `@given(parsers.parse("{machine} machine is selected for clean installation"))` in your code.

### 📚 Any additional context?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.