pester/vscode-adapter

Feature Request: Add VSCode Coverage API Support

Opened this issue · 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 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

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 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 it's on the roadmap! I need to get thru conference season for now but I plan to start work on it after that.

@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.