pytest-coverage-comment icon indicating copy to clipboard operation
pytest-coverage-comment copied to clipboard

Support branch coverage measurement in the coverage PR comment

Open kevalmorabia97 opened this issue 2 years ago • 4 comments

Feature request: Is it possible to have a config parameter to show the table with branch coverage measurement as well? Currently the coverage percentage does not consider branch percentage. But if someone uses --branch flag in the coverage command or branch=True in setup.cfg, the table that this action posts would not be consistent with the table that pytest-cov prints out image

kevalmorabia97 avatar Jan 23 '23 19:01 kevalmorabia97

Good idea, I will check the possibility to add this feature when got some time.

MishaKav avatar Jan 23 '23 22:01 MishaKav

I checked the ability and even tried to add this feature. For now, it's tough, because it is written in pure javascript without any tests, so I scary to break things.

I think, that first of all when I will get some time, I will try to rewrite this action in typescript with strong UTs, then I will be able to add new powerful features like that without feeling that I may break things.

MishaKav avatar Mar 04 '23 15:03 MishaKav

+1

vgpastor avatar Nov 13 '23 10:11 vgpastor

+1

This action is great and that's the only feature I'm missing

PeterKogan avatar Nov 16 '23 11:11 PeterKogan