Replies: 1 comment
-
I am running Pytest 7.1.1 with Python 3.9.9.
How do you develop your plugin? Do you have the ability to set breakpoints in your IDE as your test runs proceed? If so, perhaps you can use that to examine Pytest's internals while running your tests. That said I'm pretty sure the |
Beta Was this translation helpful? Give feedback.
-
I've just migrated a project from Py27 using
pytest-html==1.22.1
and am now usingpytest-html==3.1.1
, I have a plugin that was previously able to get the reason keyword argument using thewasxfail
attribute ofreport
, but now this seems to be a boolean, which is understandable.Is there a suggestion on how to access this
reason
in a clean way?This should be a minimal working example, (stripping the other logic my plugin does hopefully):
and say have a test file like this :
Beta Was this translation helpful? Give feedback.
All reactions