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

generate-missing is not documented

Open pfctdayelise opened this issue 6 years ago • 3 comments
trafficstars

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 :)

pfctdayelise avatar Dec 11 '18 12:12 pfctdayelise

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

youtux avatar Dec 16 '18 11:12 youtux

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 avatar Dec 16 '18 23:12 pfctdayelise

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

pfctdayelise avatar Apr 26 '19 04:04 pfctdayelise