jimasp / behave-vsc

A vscode extension that provides a test runner/debugger and navigation for Python behave tests
https://marketplace.visualstudio.com/items?itemName=jimasp.behave-vsc
Other
16 stars 3 forks source link

[Feature request] Setting breakpoints at the steps in the feature files #45

Closed chengwei45254 closed 1 year ago

chengwei45254 commented 1 year ago

Currently, we can set breakpoints at step definition (implementation) files. Is it possible that we can also set breakpoints directly at the steps in the feature files?

image

image

With this feature, we can trace the test execution from the very beginning of each step description. This will help us grab the test flow more clearly when debugging.

Thank you very much!

jimasp commented 1 year ago

This isn't possible. The extension does not implement it's own debugger, it uses Microsoft's Python extension debugger. The Microsoft debugger only understands the Python language, it does not understand Gherkin.

chengwei45254 commented 1 year ago

Understood. Thanks for explanation.

p.s. I asked this feature because a C# BDD framework "SpecFlow" supports it ( https://docs.specflow.org/projects/specflow/en/latest/Execution/Debugging.html). I thought maybe it is also doable here.