-
-
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
Test run summary bar is yellow but not clear why, after updating to v2.8.2 #1179
Comments
I agree that either the bar should be green without |
Thanks @edmorley for taking the time to write such a detailed description. I think at some point it was decided almost as an afterthought to also make the bar yellow if there are warnings, but in retrospect I think this caused more confusion than helped. I think the bar should be green if there are warnings, but the warnings themselves should not be shown by default: I guess most of them will be related to things outside of the control of the end users, for example warnings about plugins using obsolete @RonnyPfannschmidt, what are your thoughts? This is loosely related to #1173. |
I'm starting to think thearnings systemneeds to differentiate between different kinds of warning |
let's keep it simple. I think we can just turn back to 2.7 behaviour -- don't regard warnings as a serious enough issue to change the color. We could start to differentiate warnings but i think we don't need to invest the effort, really. Stuff breaks. If you ignore warnings, things might at some point break. Such is life. But if your test suite otherwise passes fine, the fact that it with some later release break is not immediately important. We could say that "--strict" turns warnings into errors (and thus things will be read) and generally only promise to be compatible with minor or major releases if the test run was previously fine under "--strict". FWIW i have also a problem because i am using "black foreground on white background" and yellow is hardly readable. |
-1 on that - I unfortunately still have plugins which raise deprecation warnings and ignore my PRs to fix them so far (pytest-dev/pytest-bdd#163 and pytest-dev/pytest-bdd#164), and I'd like to continue using |
Closing this issue as out of date, now that Pytest uses Python's standard warnings mechanisms. It's not perfect by any means, but we've replaced the old problems with (fewer!) new ones 😄 |
STR:
py.test tests/
Expected:
If the summary bar under pytest v2.7.2 was green, and is now yellow after updating to pytest v2.8.2:
Actual:
The summary bar is yellow, and reads:
The test run console output does not show what the pytest-warnings were (for full test run output see https://emorley.pastebin.mozilla.org/8851873).
The changlog states (there's actually two almost-duplicate entries):
I don't believe I meet those criteria (tests were run, and they weren't all skipped/failed), as such either the yellow summary bar is bogus, or else it's due to the pytest-warnings.
If the latter is the case (ie it's due to the pytest-warnings):
Many thanks :-)
[1] On the offchance someone wants to repro, it's: https://github.com/mozilla/treeherder revision 169a3d8b854bb3ce5b9914f35aa2011d2d1a1763 - Vagrant setup instructions at http://treeherder.readthedocs.org/installation.html - then update to pytest 2.8.2
The text was updated successfully, but these errors were encountered: