pytest-dev / pytest-bdd

BDD library for the py.test runner
https://pytest-bdd.readthedocs.io/en/latest/
MIT License
1.3k stars 219 forks source link

generate-missing is not documented #284

Open pfctdayelise opened 5 years ago

pfctdayelise commented 5 years ago

Hi, I finally had a good reason to use pytest-bdd in detail and it's a great experience, so thank you 😊

I saw some comments about generate-missing in the issues and I see something like this in the code, although it doesn't seem to be documented. Is it different to pytest-bdd generate foo.feature? For example does it only do the generate for steps/scenarios that are not yet implemented?? That would be nice :)

youtux commented 5 years ago

It is documented here https://pytest-bdd.readthedocs.io/en/latest/#advanced-code-generation. And yes, it should only generate code for missing steps.

pfctdayelise commented 5 years ago

Oh, so it is, my bad. TBH I am not sure why this is not the default behaviour - I'm struggling to think of when it would be useful to regenerate existing steps. And if you have not implemented anything the behaviour is the same :)

pfctdayelise commented 5 years ago

Coming back to this...the documentation is confusing. In the example two arguments features and tests/functional are given - what do these represent?