Code lens / gutters with OpenCppCoverage (Windows)
See original GitHub issueIs your feature request related to a problem? Please describe. It is hard to get which part of the code are checked against which tests (and where do they fail). I believe Test Explorer has code lens and gutters for coverage for each test, but Catch2/GTest Adapter cannot generate data for it, because it does not give information about lines that run for given tests.
Describe the solution you’d like
Actually there is a FOSS tool (unfortunately Windows only) that can feed that information; OpenCppCoverage takes PDB and verify, for each executable run, which lines were actually executed and which were not. It generates cov.xml
(format recognizable by Coverage Lens in VSCode).
It would be great if Catch2/GTest Adapter could use that data to populate lens and gutters at least on Windows.
Describe alternatives you’ve considered There is no similiar tool for Linux / OS X I am aware of. There is no other plugin for GTest for VSCode as well.
Additional context If effort would not be acceptable on Your side for any reason, I can implement this in fork, then propose PR. I would ask only for some basic directions. Still, it would be great, if You can add this feature directly - you know your code much better than myself.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (4 by maintainers)
Top GitHub Comments
I had, thank you - my typescript is a bit rusty (well - maybe more than a bit) 😃
I will publish that into VS extensions repo soon 😃
Have fun 😃