smarie / python-pytest-harvest

Store data created during your `pytest` tests execution, and retrieve it at the end of the session, e.g. for applicative benchmarking purposes.
https://smarie.github.io/python-pytest-harvest/
BSD 3-Clause "New" or "Revised" License
61 stars 8 forks source link

When pytest-cases (or other plugins) generate fixtures, it is not easily possible to mark them as saved with `@saved_fixture` #44

Open smarie opened 3 years ago

smarie commented 3 years ago

Maybe we should think of an alternate/complementary API to simply pass a list of fixtures to save, or to enable saving all fixture values automatically ? Indeed having to mark all fixtures with @saved_fixture does not scale very well.

Note that a valid workaround is to put the fixture values explicitly in the results_bag in the test.