-
Notifications
You must be signed in to change notification settings - Fork 75
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
SugarVerbose: Print more verbose testcase reports for all o… #175
Conversation
Just a quick idea: maybe this should be based on / coupled with pytest's |
Codecov Report
@@ Coverage Diff @@
## master #175 +/- ##
==========================================
- Coverage 85.32% 81.85% -3.48%
==========================================
Files 2 2
Lines 477 496 +19
Branches 84 92 +8
==========================================
- Hits 407 406 -1
- Misses 44 57 +13
- Partials 26 33 +7
Continue to review full report at Codecov.
|
Thanks @blueyed I will check it. |
I have checked it and found some issues. Report output when pytest-sugar is not installed:
Report output when pytest-sugar is installed:
my example test file
|
I can understand why there are so many testcases in the report, it counts: call, setup and teardown for each testcase. But there is an outcome change from: |
Oh I understand you, maybe we did not need this new option: "--sugar-verbose", just enable this feature when -ra is defined in arguments. I will think about this. |
@blueyed Thanks for the note, I have removed the option and the feature can be enabled with native "-ra" arg |
Correct me if I am wrong, without fixing CI failures my PR can not be merged. As I saw there are already some PR(s) to fix those issues. My question is: how can I help to move forward my PR? |
@mitzkia we have to wait for @Frozenball here I assume. |
Ok, thank you for the answer. |
Actually I can merge things here, and CI should be fixed after merging #156 (which was approved / got no more feedback). In general I am not using pytest-sugar myself by default.. (so do not expect too much help / reviewing from me here) |
... so apparently #156 was stalled for too long, and CI is still broken with it now: https://travis-ci.org/Frozenball/pytest-sugar/builds/543349387 Do you feel like fixing it? (from a quick look it appears there is an issue with xdist, and some other dep compatibility at least) |
Thanks for your answer. I would say lets wait for a while @Frozenball's answer. Soon I will check the broken CI and #156 |
I am trying to fix it quickly in #177 already. |
Merged #177, so you are able to rebase your PR(s) at least for now. |
Thanks :) , I will do it |
Thanks again, I will fix the CI fail. |
…utcome Signed-off-by: Andras Mitzki <mitzkia@gmail.com>
Hey 👋 Thank you for your PR! I am going through the old PRs in this repository and closing them since a long time has passed since the opening and they may not be that relevant anymore. If you still wish to continue with this pull request, let me know and we can re-open it. Teemu |
…utcome
Signed-off-by: Andras Mitzki mitzkia@gmail.com
I have found that pytest-sugar can display each failed testcases which is a useful feature.
For me it would be even better if it could display it for each pytest outcomes.
The original idea came from the error outcomes which can happen in setup or teardown phases also and I would like to know when it happened.
Maybe the option name (--sugar-verbose) is not the best, it is fine to change it.
Update:
The functionality from using "--sugar-verbose" arg has been changed to use "native" pytest arg: "-ra"
Example to run this feature use the following execution:
Before
After