mesonbuild / vscode-meson

Meson for VisualStudio Code
Apache License 2.0
99 stars 49 forks source link

Feature request: Test File Coverage Support #224

Open Totto16 opened 2 months ago

Totto16 commented 2 months ago

Since VS Code 1.88 the Test coverage API is stable (see e.g. here or here )

This extension could add this data, from meson, if possible, after the test run has completed, and b_coverage=true.

Not sure if this is the right place, but I think it is, since this extension provides test execution. On the other hand, meson produces a lcov file, that would have to be parsed (there are presumably some libraries for this) and the information from that would be used.

So if this is the wrong place, and this should be supported by other extensions, that specialize on coverage, feel free to say it. But I think, they way it was implemented was thought to be, that the extension implementing the test support also implements that.

tristan957 commented 2 months ago

I think this seems like a reasonable request. Thanks for bringing it up. It doesn't sound that difficult. Perhaps you would want to submit a PR?

Totto16 commented 2 months ago

I thought that myself, I'll look into it, if I have time 👍🏼 Just opened an issue, so that it can be discussed