

If pytest-steps is installed, the step ids will be extracted and the dataframe index will be multi-level It is basically just a transformation of the session_results_dct fixture into a pandas DataFrame. It includes contents from the default fixture_store, including results_bag. This fixture contains a synthesis dataframe for all tests completed "so far" in the module of the caller, Same than session_results_dct but with module scope. This fixture has a function scope because we want its contents to be refreshed every time it is needed. It includes contents from the default fixture_store, including results_bag.īehind the scenes it relies on get_session_synthesis_dct. This fixture contains a synthesis dictionary for all tests completed "so far", with 'full' id format. This fixture has session scope so it is unique across the whole session.

To get the raw stored results, use the fixture_store fixture: fixture_store will contain all result bags for all tests. There are several ways to gather all results after they have been stored. This fixture has function-scope so a new, empty instance is injected in each test node. It offers a "much"-like api: you can access all entries using the object protocol such as in results_bag.a = 1. results_bag ¶Ī "results bag" fixture: a dictionary where you can store anything (results, context, etc.) during your tests execution.

The following fixtures can be used in your tests as soon as the library is installed (no explicit plugin activation is required).
