allure-framework / allure-python

Allure integrations for Python test frameworks
https://allurereport.org/
Apache License 2.0
719 stars 235 forks source link

Fix historyId calculation by allure-pytest (fix #743, #744) #745

Closed delatrie closed 1 year ago

delatrie commented 1 year ago

Context

This PR fixes a couple of issues regarding historyId

  1. Allure-pytest now takes into account non-excluded dynamic parameters when calculating historyId.
  2. Assigning or changing an id of a pytest parameter set now doesn't affect historyId.
  3. Reordering of parameters (both pytest-provided and/or dynamic) now doesn't affect how allure-pytest calculates historyId.

Other changes

  1. allure_commons.utils.md5 now may take any value, not only strings.
  2. Add missed issue link to one of the tests.
  3. Fix pytest runner crash with an unhelpful AttributeError when trying to execute a non-existing docstring.

Checklist

Closes #743 Closes #744 Enables #430