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
63 stars 9 forks source link

Ease `pytest-xdist` usage #36

Closed smarie closed 4 years ago

smarie commented 4 years ago

As per suggestion from @larsks in #34: current support for pytest-xdist is still a bit complex: users have to follow the example [conftest.py`](https://smarie.github.io/python-pytest-harvest/#pytest-x-dist).

We could do several things to improve this :

The final user experience would be that they can use the get_session_results_df() method in the pytest_sessionfinish hook, without caring about persistence and sharing across workers

smarie commented 4 years ago

@larsks this is now available in 1.9.0. I would appreciate any feedback about the new simplified user experience! See documentation