pytest-sugar icon indicating copy to clipboard operation
pytest-sugar copied to clipboard

Get test count from collection_finish hook over runtestloop

Open nak opened this issue 5 years ago • 1 comments

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(?)

nak avatar May 20 '20 17:05 nak

Codecov Report

Merging #195 into master will increase coverage by 0.20%. The diff coverage is 100.00%.

Impacted file tree graph

@@            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 data Powered by Codecov. Last update 00b8100...8604b62. Read the comment docs.

codecov-commenter avatar May 20 '20 19:05 codecov-commenter

Rebased this https://github.com/Teemu/pytest-sugar/pull/253

Teemu avatar Nov 08 '22 17:11 Teemu