Skip to content

Releases: smarie/python-pytest-harvest

1.4.2 - Fixed results bags in presence of steps (2)

17 Dec 21:56
Compare
Choose a tag to compare

Another import error was causing results bag to be saved incorrectly in presence of steps.

See documentation page for details.

1.4.1 - Fixed results bags in presence of steps

17 Dec 21:41
Compare
Choose a tag to compare

Results bags are now compliant with pytest-steps: there are now one per step. This fixed #16.

See documentation page for details.

1.4.0 - Removed integration with `pytest_steps` in default fixtures

17 Dec 18:06
Compare
Choose a tag to compare

Integrating pytest-steps in default fixtures seemed like a bad idea because it led to automatic behaviour that could silently raise warnings. Let pytest-steps handle it on its side.

See documentation page for details.

1.3.0 - Better integration with `pytest_steps` in default fixtures

14 Dec 18:31
Compare
Choose a tag to compare

Default fixtures module_results_df and session_results_df now automatically become multi-level indexed when pytest steps is installed and there are steps in the tests.

See documentation page for details.

1.2.1 - Minor: new low-level API

13 Dec 16:16
Compare
Choose a tag to compare

New method get_all_pytest_fixture_names to list all fixture names used by items in a session.

See documentation page for details.

1.2.0 - Added column in default dataframe synthesis fixtures

10 Dec 21:14
Compare
Choose a tag to compare

Fixtures module_results_df and session_results_df now contains the 'pytest_obj' column.

See documentation page for details.

1.1.0 - New default fixtures + fixture parameter names fix

10 Dec 18:14
Compare
Choose a tag to compare

Created 6 fixtures registered by default by the plugin. Fixed #14:

  • fixture_store in an OrderedDict that can be used as a fixture store, typically in @saved_fixture.
  • results_bag is a ResultsBag-typed results bag.
  • session_results_dct and module_results_dct return a synthesis dictionary for all tests completed "so far", respectively in the session or module. They include
    contents from the default fixture_store, including results_bag.
  • session_results_df and module_results_df are the dataframe equivalents of session_results_dct and module_results_dct

The documentation has been updated so that users can get started more quickly by leveraging them.

In addition:

  • get_session_synthesis_dct can now take both a session or a request input. If a request is provided, the status of current item will be marked as 'pending', while not started items will be marked as 'unknown'.
  • fixed bug in get_session_synthesis_dct: fixture parameters and saved fixtures where overriding each other in the final dict in flatten=True mode. Now fixture parameters appear as '<fixture_name>_param'. Fixed #15.
  • @saved_fixture can now be used without arguments. By default it will store fixtures in the default session-scoped 'fixture_store' fixture.
  • HARVEST_PREFIX moved to common.py and is now exported at package level.

See documentation page for details.

1.0.1 Ordering bug fix

20 Nov 19:59
Compare
Choose a tag to compare

Fixed pytest ordering issue, by relying on place_as. See #18

See documentation page for details.

1.0.0 - new methods for pytest session analysis

19 Nov 14:07
Compare
Choose a tag to compare

New methods are provided to analyse pytest session results:

  • filter_session_items(session, filter=None) is the filtering method used behind several functions in this package - it can be used independently. pytest_item_matches_filter is the inner method used to test if a single item matches the filter.
  • get_all_pytest_param_names(session, filter=None, filter_incomplete=False) lists all unique parameter names used in pytest session items, with optional filtering capabilities. Fixes #12
  • is_pytest_incomplete(item), get_pytest_status(item), get_pytest_param_names(item) and get_pytest_params(item) allow users to analyse a specific item.

See documentation page for details.

0.9.0 - `get_session_synthesis_dct`: filter bugfix + test id formatter

15 Nov 18:32
Compare
Choose a tag to compare
  • get_session_synthesis_dct:

    • filter now correctly handles class methods. Fixed #11
    • new test_id_format option to process test ids. Fixed #9

See documentation page for details.