vscode-adapter icon indicating copy to clipboard operation
vscode-adapter copied to clipboard

Feature Request: Add VSCode Coverage API Support

Open sgtwilko opened this issue 1 year ago • 5 comments

Hiya,

Nice extension, thank you!

Is there a way we can see the code coverage as we can other extensions like the Jest extension?

sgtwilko avatar Dec 16 '23 14:12 sgtwilko

@sgtwilko The VSCode code coverage API is very new and still a work in progress. Once it firms up a bit I'll give it a shot as Pester does have code coverage output support.

https://github.com/microsoft/vscode/issues/123713

JustinGrote avatar Dec 18 '23 06:12 JustinGrote

I've found a way to see coverage produced by pester, but it needs a configuration to be created. Is there a way to set a custom command to pester in the plugin?

sgtwilko avatar Jan 11 '24 20:01 sgtwilko

@sgtwilko The VSCode code coverage API is very new and still a work in progress. Once it firms up a bit I'll give it a shot as Pester does have code coverage output support.

microsoft/vscode#123713

March 2024 release of VSCode has got the Code Coverage API support. I would really like to see this feature added for Pester tests.

Glober777 avatar Apr 05 '24 10:04 Glober777

@Glober777 it's on the roadmap! I need to get thru conference season for now but I plan to start work on it after that.

JustinGrote avatar Apr 05 '24 16:04 JustinGrote

@Glober777 a temp fix for me was configuring pester to output a code coverage file, and using a different plugin to consume those files and display the results in the VScode gutter.

sgtwilko avatar Apr 17 '24 05:04 sgtwilko