Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Add VSCode Coverage API Support #228

Open
sgtwilko opened this issue Dec 16, 2023 · 5 comments
Open

Feature Request: Add VSCode Coverage API Support #228

sgtwilko opened this issue Dec 16, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@sgtwilko
Copy link

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
Copy link
Collaborator

JustinGrote commented Dec 18, 2023

@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

@JustinGrote JustinGrote added the enhancement New feature or request label Dec 18, 2023
@sgtwilko
Copy link
Author

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
Copy link

@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
Copy link
Collaborator

@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 JustinGrote changed the title Is there a way to see code coverage? Feature Request: Add VSCode Coverage API Support Apr 5, 2024
@sgtwilko
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants