pester / vscode-adapter

Run PowerShell Pester Tests with Visual Studio Code
MIT License
58 stars 13 forks source link

Feature Request: Add VSCode Coverage API Support #228

Open sgtwilko opened 8 months ago

sgtwilko commented 8 months ago

Hiya,

Nice extension, thank you!

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

JustinGrote commented 8 months ago

@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

sgtwilko commented 7 months ago

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?

Glober777 commented 4 months ago

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

JustinGrote commented 4 months ago

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

sgtwilko commented 4 months ago

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