[RFC] Explicit mechanism for supporting xfail and skip in [third-party] plugins #7327
Labels
status: help wanted
developers would like help from experts on this topic
type: docs
documentation improvement, missing or needing clarification
type: proposal
proposal for a new feature, often to gather opinions or design the API around the new feature
Milestone
While working on pytest-dev/pytest-forked#34 I had to go through source code in the skipping plugin to figure out how to make pytest show xfailed tests for runs made by an external plugin. And here's my observations:
outcome='xfailed'
andwasxfail = 'reason'
, pytest will show normal xfailed output in the failures and summary sections but the progress section will show the failure (F
letter instead ofX
/x
).outcome='skipped'
(along withwasxfail = 'reason'
!) to make it show consistent output but I need to set it only if I discover that the test has xfail marker. Wait, what?skipped
? Really? But I really ran it...So here's what I think could be improved:
raises
argThe text was updated successfully, but these errors were encountered: