1.3.0 - Default fixtures for `pytest-harvest`
When steps are present, we now offer session_results_df_steps_pivoted and module_results_df_steps_pivoted default fixtures, to align with pytest-harvest >= 1.1 default fixtures session_results_df and module_results_df. Fixes #23.
Improved API to manipulate pytest-harvest results objects in presence of steps:
- Renamed
handle_steps_in_synthesis_dctintohandle_steps_in_results_dct(old alias is kept for this version). Renamed parameterraise_if_no_steptoraise_if_one_test_without_step_id. Added a parameterkeep_orig_id, by default (True) the original test id is kept for reference. Another parameterno_steps_policyallows users to make the method transparent if no steps are found. - new method
handle_steps_in_results_dfto perform the same things thanhandle_steps_in_results_dctbut directly on the synthesis dataframe. The parameters are almost the same. - New method
flatten_multilevel_columnsto diretly applyget_flattened_multilevel_columnson the columns of a dataframe pivot_steps_on_dfnow has the ability to detect parameter and fixture names from the provided pytest session, so as not to pivot them (they should be stable across steps). It also provides anerror_if_not_presentparameter
See documentation page for details.