tarpaulin icon indicating copy to clipboard operation
tarpaulin copied to clipboard

Per-test coverage

Open ffMathy opened this issue 3 years ago • 2 comments

I am building a Go provider for Pruner (a CLI that runs only the tests that ran through the lines you changed, saving you time).

For that, I need to be able to see per-test coverage. Not just a full coverage report after all tests have run, but I need a way to know which tests ran through what line.

Is that possible with this library?

ffMathy avatar Jan 12 '21 21:01 ffMathy

Not easily possible, you could use the test filtering in cargo to run tarpaulin for every individual test one after the other and then use the coverage report for each test to do it. But that does feel particularly onerous

xd009642 avatar Jan 15 '21 19:01 xd009642

+1 for this being a native feature, if possible. I have written some stuff to do exactly what you describe but it is a bit cantankerous and seems way slower than i would have thought, though that might be me mismanaging build caches.

Zylatis avatar Apr 27 '22 03:04 Zylatis