You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following issue #229 and the discussion there, adding generators to case function requires discussion and some work:
What about pytest marks ? marking a single subcase (1 yield) / marking all subcases (all of the yields) ?
Should we consider the "return" of a generator ?
How to manage pytest ids one by one ? All at once ?
How to manage the compliance with the @case decorator ? (ids, filters, tags, etc.). Maybe the best way is to not create a new decorator but to have extra arguments in this decorator ?
Let the conversation begin 🤓
The text was updated successfully, but these errors were encountered:
I think the feature itself would be useful and offer a lot of flexibility to improve automated, larger test sets — for example I’d create a generator which randomly picks a large number of example cases from a Faker provider.1 How nice would that be 🤓
As for implementing that in your package and answering the above questions, I’m not fluent enough with the details of the pytest implementation… but hopefully the community can help out so this feature can come alive soon 🤞🏼
Following issue #229 and the discussion there, adding generators to case function requires discussion and some work:
Let the conversation begin 🤓
The text was updated successfully, but these errors were encountered: