-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
disable warnings summary for pytest #9743
Conversation
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
Codecov Report
@@ Coverage Diff @@
## master #9743 +/- ##
=======================================
- Coverage 93% 89% -4%
=======================================
Files 177 177
Lines 15456 15456
=======================================
- Hits 14317 13698 -619
- Misses 1139 1758 +619 |
how much of the warnings would you estimate is due to overzealous warnings by the framework vs tests having real issues? |
@ananthsub I would say the majority is definitely from the framework. The majority of warnings are "friendly" messages for users who haven't fully configured and tuned the settings. But in our tests, messages like these do not matter. For example, since we use BoringModel in practically every test, it will always raise this warning:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGMT !
What does this PR do?
There are literally thousands of lines of output from pytest informing us about warnings.
It's simply not practical.
This PR disables this nonsense of endless scrolling.
The statistic of how many warnings there are in total is still visible like so:
==== 44 passed, 7 skipped, 217 warnings in 5.33s ====
Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:
Did you have fun?
I made sure I had fun coding 🙃