Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

[feature] add the coverage for single test run #1637

Closed
primalmotion opened this issue Apr 20, 2018 · 1 comment
Closed

[feature] add the coverage for single test run #1637

primalmotion opened this issue Apr 20, 2018 · 1 comment

Comments

@primalmotion
Copy link
Contributor

Code coverage highlighting only works when we run the package tests.

Would it be possible to have the coverage when we run individual test function? This would be very helpful to see what a test function is actually testing, without having other tests interfering when we run all of them.

Thanks,

@ramya-rao-a
Copy link
Contributor

ramya-rao-a commented May 4, 2018

This feature is now out in the latest update to the Go extension (0.6.79)
Add the setting "go.coverOnSingleTest": true to get code coverage when running individual tests either via the command or the code lens

Thanks @primalmotion!

@vscodebot vscodebot bot locked and limited conversation to collaborators Jun 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants