-
-
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
xpass logic #1327
Comments
see #1299 in hindsight being lax on xpass was a mistake i don't recall offhand how its decided - i invite you to take a look at how it works, the code in question should reasonably discoverable |
OK, I've got it. Thanks for your answer, it was pretty useful for me |
Could you close this if you don't have any further questions @HPotter? |
Sure. |
I'm trying to understand what exactly "xpass" and "xfail" are.
I understood that when my xfail test fails, that's expected and OK. But when my xfail test passes - is it success or failure? I suggest that it's also success, because py.test command exits with 0 exit code even if there were any xpassed tests.
Why I'm asking: I'm running my tests on Teamcity CI with teamcity-messages module to report pytest results to Teamcity. And teamcity-messages interprets xpassed tests as failures.
PS How can I determine from TestReport object (in pytest_runtest_logreport) if test xfailed\xpassed (or at least marked as xfail)?
The text was updated successfully, but these errors were encountered: