p10tyr / PrestoCoverage

Visual Studio Extension for simple coverage visuals
Apache License 2.0
45 stars 6 forks source link

Display coverage statistics #13

Open mikejmoody opened 5 years ago

mikejmoody commented 5 years ago

Either create a new panel or re-use the existing Code Coverage window to display the coverage statistics. There is a class in coverlet.core that collates the statistics so it would just be a question of rendering them within VS somehow.

p10tyr commented 5 years ago

I had a look into how to reuse the existing Code Coverage panel but it seems it is only accessible using Visual Studio Enterprise. You can have a look at any other tool like Resharper or OpenCover they make their own panels...

So the problem comes from that to use that panel you can import a .coverage file... Yes.. the only way to do that is to generate a coverage file. Lol.. good luck. The only way I could do it is run and export the test results using the Azure DevOps pipeline.. boom, they run Enterprise build versions . Ok, I tried importing the file into Pro. Sorry.. license problem.

The results are indeed in Coverlet. We can use them quite easily but the problem is trying to create new VS panels, windows, managing it all. Quite time consuming which I currently lack.

Maybe an interim solution would be emit messages into the build output or something