pytest-bdd icon indicating copy to clipboard operation
pytest-bdd copied to clipboard

Add instructions to documentation on how to run tests with pytest-bdd

Open k2m30 opened this issue 1 year ago • 1 comments

I am not the only one struggling with it. Here is Stackoverflow discussion started almost five years ago and still haven't solved.

k2m30 avatar Oct 13 '23 10:10 k2m30

I agree that a simple note in the readthedocs would help. The readme in this repo has an example.

Define your step definitions in a test_xxxx.py file, and your feature file somewhere, with a reference to that file in your step defs. Then when your run pytest, it will pick up the test and run it just like the others.

jzohrab avatar Oct 22 '23 18:10 jzohrab