News for hackers. Stuff that matters.
Re:Ask HN: What small library or tool do you want that doesn... by weinzierl on Monday May 02, 2022 @08:22AM (#31234186)
The tooling for this exits and is 100% usable.

All you have to do is run a build with coverage enabled and then load the coverage data files into your IDE. At least Eclipse (with EclEmma) shows the results in a way that are pretty close to what you described. I'm sure other IDEs can do the same.

The only thing is that nobody does this on production, because of the performance impact and potentially increased risk.

Re:Ask HN: What small library or tool do you want that doesn... by eligro91 on Monday May 02, 2022 @09:49AM (#31235079)
Yes. I know it's existing as coverage when you run unit-tests.

I'm well aware of the performance impact on production, I guess it's the major challenge here.

Since I'm mainly developing in python - here's a good article about that, he gave some directions to make it faster: https://www.drmaciver.com/2017/09/python-coverage-could-be-f...