tarpaulin
tarpaulin copied to clipboard
Per-test coverage
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?
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
+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.