-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Skip report refers to skipping plugin when using skipif marker #114
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
Comments
Original comment by Ronny Pfannschmidt (BitBucket: RonnyPfannschmidt, GitHub: RonnyPfannschmidt): would it be reasonable to have output like: test.py ss ================ 2 skipped in 0.01 seconds ================= im not sure how to name the location best if it happens inside of a plugin |
Original comment by Floris Bruynooghe (BitBucket: flub, GitHub: flub): I don't think I've explained my use case very well. I stumbled upon this while I was looking at the output of a large test run on a Jenkins server. There it was noticeable that the tests skipped by pytest.skip() pointed me directly to the correct module while for the skipif marker I had to grep the entire code base for the reason message in order to find where it was being skipped. Yes this was aggravated by a bad skipping message of "temporarily disabled", but I still think it would be more helpful if it pointed me to the right place. So in summary I still think it would be useful if the skipping summary could point to the skipped tests rather then the skipping plugin. Just changing the text doesn't help my use case really. |
Original comment by Ionel Cristian Mărieș (BitBucket: ionelmc, GitHub: ionelmc): Meanwhile here's a half-baked attempt to fix it with a custom hook:
(it's scary that) it works! |
Xfang fix mongo tests
Originally reported by: Floris Bruynooghe (BitBucket: flub, GitHub: flub)
When using pytest.mark.skipif and asking for skip reports the skipping plugin gets referred, e.g.:
The first skip description is not very useful, the second is much nicer.
The text was updated successfully, but these errors were encountered: