Skip to content

show coverage for a particular test? #1196

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

Closed
tmc opened this issue Feb 3, 2017 · 2 comments
Closed

show coverage for a particular test? #1196

tmc opened this issue Feb 3, 2017 · 2 comments

Comments

@tmc
Copy link
Contributor

tmc commented Feb 3, 2017

It would be cool if coverage had a :GoTestFunc / or go test -run equivalent so you could see coverage that a subset of tests contributes.

@fatih
Copy link
Owner

fatih commented Mar 5, 2017

Hi @tmc. The coverage feature works for all functions as there is not a 1-1 mapping from a test to a coverage. You might have multiple tests that affect the same function. I assume we can evaluate for all tests and only display the result for a given function, however the coverage file doesn't have that feature (it only contains the file name with the offsets). Thanks for the idea

@tmc
Copy link
Contributor Author

tmc commented Jun 8, 2017

@fatih I opened a PR that enables this

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

No branches or pull requests

2 participants