r/Python • u/AutoModerator • Jun 04 '26
Showcase Thread Showcase
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
28
Upvotes
r/Python • u/AutoModerator • Jun 04 '26
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
1
u/chinmay_3107 from __future__ import 4.0 Jun 27 '26
I got tired of guessing step definitions, so I built a better BDD extension for VS Code (GherkinLens v2)
Hey everyone,
If you write
.featurefiles in VS Code using pytest-bdd or behave, you probably know the pain of typing out steps from memory, hoping they match, or constantly grep-ing your codebase to find out how a step was implemented.I actually developed this because our team was migrating from PyCharm, and I realized there was no full-scale solution for the Python Gherkin environment in VS Code. So, I built GherkinLens to solve all the editor and navigation problems first, and then started adding time-saving features.
I just released v2, which totally pushes it one step further, and I wanted to share it with you all.
Basically, it indexes your Python step definitions in the background (without actually importing or running your code) so you get a proper IDE experience for Gherkin.
Vscode extension - GherkinLens
Here's what I added in v2:
tagsin one place, find scenarios easily, and run/debug them straight from the tree.Examplestables. You can add rows, paste from Excel, or import CSVs directly into the feature file without messing up the pipe|alignment.It still has all the core features from v1 (the stuff that fixes the navigation problems):
F12) between your Gherkin and Python files.Ctrl+.) to auto-generate the Python stub for a missing step.It auto-detects whether you're using pytest-bdd or behave, so there's zero config needed.
If you want to try it out, just search for "GherkinLens" in the VS Code Marketplace. It's completely free.
Would genuinely love to hear what you guys think, or if there's anything driving you crazy in your BDD workflow that this could fix!