-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
different behavior for pytest xfail in 2.9.2 version and 3.0.6 #2242
Comments
I see an XPASS and xfail as expected:
|
Well maybe this can help:
When I run the same test with pytest==2.9.2 assertion doesn't happen |
What's |
@The-Compiler yes, it relates to xml generation for allure reports. Is this fix already included in v 3.0.6? |
The fix is that xpass now shows up as passed instead of failed, because that's the case elsewhere in pytest too. You can use xfail with Either way, this doesn't look like a pytest issue, so I'm closing this. |
I noticed that pytest.mark.xfail works differently on versions of pytest mentioned in subj.
Example: I have two tests
When I run them with pytest==2.9.2 version first test fails and second is skipped.
But when I run same test with pytest==3.0.6 first test is passing and second is skipped.
The text was updated successfully, but these errors were encountered: