Skip to content
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

Reintroduce error on xpass #1299

Closed
RonnyPfannschmidt opened this issue Jan 1, 2016 · 6 comments
Closed

Reintroduce error on xpass #1299

RonnyPfannschmidt opened this issue Jan 1, 2016 · 6 comments
Labels
status: critical grave problem or usability issue that affects lots of users topic: reporting related to terminal output and user-facing messages and errors type: backward compatibility might present some backward compatibility issues which should be carefully noted in the changelog
Milestone

Comments

@RonnyPfannschmidt
Copy link
Member

We should not provide a half done solution to flaky tests as noted in #814

The correct solution to flaky tests is a plugin with supporting primitives not technical debt in xfail

@RonnyPfannschmidt RonnyPfannschmidt added task topic: reporting related to terminal output and user-facing messages and errors type: backward compatibility might present some backward compatibility issues which should be carefully noted in the changelog status: critical grave problem or usability issue that affects lots of users labels Jan 1, 2016
@RonnyPfannschmidt RonnyPfannschmidt added this to the 2.9 milestone Jan 1, 2016
@RonnyPfannschmidt RonnyPfannschmidt changed the title Reinterpretation error on xpass Reintroduce error on xpass Jan 1, 2016
@nicoddemus
Copy link
Member

I think #1355 is a good solution: an strict_xfail ini option (defaulting to False for backward compatibility) to treat XPASS as failures. We could then change the default to True in a future release so pytest by default will be more strict (which I'm also in favor), providing we warn users before hand so they can adjust their pytest.ini before the default is switched over.

Seems simple to implement and will solve the problem in the long run, without the need for users to have to resort to a separate plugin.

@RonnyPfannschmidt
Copy link
Member Author

i agree

@esiegerman
Copy link

@nicoddemus How would strict_xfail remove the need for a plugin?

(To be clear, I'm strongly in favour of reverting xfail to fail-on-XPASS, and also in favour of the strict_xfail ini option -- I think it's a good way to minimize the pain that the former will cause for some people. I just don't see how, in addition, strict_xfail helps people with flaky tests -- assuming that's the plugin you're referring to, that is...)

@nicoddemus
Copy link
Member

Oh flaky tests are another issue... I was merely stating the solution for the fail-on-XPASS problem. xfail would probably need a separate plugin

@RonnyPfannschmidt
Copy link
Member Author

@esiegermann xfail should not be used for flaky Tests to begin with

@esiegerman
Copy link

@RonnyPfannschmidt I know. I misinterpreted @nicoddemus's recent comment; when he mentioned no longer needing a plugin, I assumed (based on earlier discussion, e.g. in #814), that it was a flaky-supporting plugin he was referring to. Since he wasn't, my question is meaningless and can be ignored.

Sorry for the noise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: critical grave problem or usability issue that affects lots of users topic: reporting related to terminal output and user-facing messages and errors type: backward compatibility might present some backward compatibility issues which should be carefully noted in the changelog
Projects
None yet
Development

No branches or pull requests

3 participants