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

Test that unexpectedly passes doesn't produce exit code #259

Closed
pytestbot opened this issue Jan 28, 2013 · 3 comments
Closed

Test that unexpectedly passes doesn't produce exit code #259

pytestbot opened this issue Jan 28, 2013 · 3 comments
Labels
type: enhancement new feature or API change, should be merged into features branch

Comments

@pytestbot
Copy link
Contributor

Originally reported by: Jack Riches (BitBucket: jriches, GitHub: jriches)


If test is marked xfail, but the test passes, there should be a non-zero exit code (e.g. for CI to flag a warning).

I believe this once existed, as documented by the release notes for 2.0.0:

“xpass” (unexpected pass) tests don’t cause exitcode!=0


@pytestbot
Copy link
Contributor Author

Original comment by Ronny Pfannschmidt (BitBucket: RonnyPfannschmidt, GitHub: RonnyPfannschmidt):


seems i introduced that between 1.3 and 2.0 - i didnt document it extensively enough,
so i'll check again in detail how it came up

@pytestbot pytestbot added the type: enhancement new feature or API change, should be merged into features branch label Jun 15, 2015
@dariuspbom
Copy link

I also raised this in #716

See #814 for the discussion about flaky tests.

@nicoddemus
Copy link
Member

I'm closing this as a duplicate of the ongoing discussion at #814, thanks @dariuspbom for bringing this to attention.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement new feature or API change, should be merged into features branch
Projects
None yet
Development

No branches or pull requests

3 participants