-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
[RFC] Explicit mechanism for supporting xfail and skip in [third-party] plugins #7327
Copy link
Copy link
Open
Labels
status: help wanteddevelopers would like help from experts on this topicdevelopers would like help from experts on this topictype: docsdocumentation improvement, missing or needing clarificationdocumentation improvement, missing or needing clarificationtype: proposalproposal for a new feature, often to gather opinions or design the API around the new featureproposal for a new feature, often to gather opinions or design the API around the new feature
Milestone
Metadata
Metadata
Assignees
Labels
status: help wanteddevelopers would like help from experts on this topicdevelopers would like help from experts on this topictype: docsdocumentation improvement, missing or needing clarificationdocumentation improvement, missing or needing clarificationtype: proposalproposal for a new feature, often to gather opinions or design the API around the new featureproposal for a new feature, often to gather opinions or design the API around the new feature
Type
Fields
Give feedbackNo fields configured for issues without a type.
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 (Fletter 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:
raisesarg