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

Provide methods to retrieve `[session/module]_results_[dict/df]` in a session finish hook #33

Closed smarie closed 4 years ago

smarie commented 4 years ago

See https://github.com/smarie/python-pytest-harvest/issues/32: in some contexts, users might wish to collect the results in a session teardown hook where access to fixtures is disabled.

We should provide get_[session/module]_results_[dict/df](session) methods to get the same objects than the fixtures, from the session object.