You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During testing of pytest-azurepipelines, which relies on pytest-nunit, it was found that if you have pytest-rerunfailures installed and use the reruns argument, then this plugin's self.nunit_xml.cases becomes empty, so the add attachment fixture raises a KeyError exception.
During testing of pytest-azurepipelines, which relies on pytest-nunit, it was found that if you have pytest-rerunfailures installed and use the reruns argument, then this plugin's
self.nunit_xml.cases
becomes empty, so the add attachment fixture raises a KeyError exception.Minimal example:
And if you run this command:
pytest --nunit-xml=test-results.xml
then it will generate the report with attachment details as expected.
However, if you
pip install pytest-rerunfailures
, and then run:pytest --nunit-xml=test-results.xml --reruns 0
then you get
KeyError: 'test_minimal.py::test_example'
The text was updated successfully, but these errors were encountered: