pytest-sugar
pytest-sugar copied to clipboard
Get test count from collection_finish hook over runtestloop
Using runtestloop hook to count tests can easily conflict with other plugins that override the default runtestloop behavior (e.g. in pytest_mproc or pytest_xdist that do distributed testing). Using the collection hooks -- in this case collect_finish hook seems more approriate overall anyway(?)
Codecov Report
Merging #195 into master will increase coverage by
0.20%. The diff coverage is100.00%.
@@ Coverage Diff @@
## master #195 +/- ##
==========================================
+ Coverage 87.44% 87.65% +0.20%
==========================================
Files 2 2
Lines 478 478
Branches 85 85
==========================================
+ Hits 418 419 +1
Misses 35 35
+ Partials 25 24 -1
| Impacted Files | Coverage Δ | |
|---|---|---|
| pytest_sugar.py | 82.99% <100.00%> (+0.29%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing dataPowered by Codecov. Last update 00b8100...8604b62. Read the comment docs.
Rebased this https://github.com/Teemu/pytest-sugar/pull/253