Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
k2m30 opened this issue Oct 13, 2023 · 1 comment
Open

Comments

@k2m30
Copy link

k2m30 commented Oct 13, 2023

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

@jzohrab
Copy link

jzohrab commented Oct 22, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants