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

Is it possible to get coverage by tests? #117

Open
yamac-kurtulus opened this issue Jun 11, 2018 · 8 comments
Open

Is it possible to get coverage by tests? #117

yamac-kurtulus opened this issue Jun 11, 2018 · 8 comments
Labels
feature-request New feature request stale

Comments

@yamac-kurtulus
Copy link

I looked for, but couldn't find an answer. Is it possible to find information about which tests cover what part of the code? If not, do you plan to implement it?

@tonerdo
Copy link
Collaborator

tonerdo commented Jun 12, 2018

HI @yamac-kurtulus, the different output file formats contain that information. You can use https://github.com/danielpalme/ReportGenerator with the Opencover and Cobertura output formats

@default-writer
Copy link

you can see it in Visual Studio 2017
screenshot 1

@yamac-kurtulus
Copy link
Author

@tonerdo,
I am using the report generator both with cobertura and opencover formats using coverlet. However it did not show it. Yes, the code-coverage from coverlet is there, however there is no information on which tests covering what parts of the code. Do I need a switch or parameter while testing? I am excluding tests from the coverage report, could this be causing a problem? Likewise, is it possible that it won't find xunit tests?

Note: Thanks for the awesome code coverage tool by the way. Coverlet is great and I want to keep using, but I need the coverage by tests info :/

@hack2root thank you for the advice, however I think it is possible in VS professional, I am using community edition. Besides, I want to publish output results using report generator and not stick to VS.

@latop2604
Copy link
Contributor

FYI, It's an enterprise feature, not professional

@yamac-kurtulus
Copy link
Author

@latop2604 that's even harder for me to get then, oh well :/

@lucasteles
Copy link

Hi, any update about this? this feature is very usefull and we cant use it today

@MarcoRossignoli MarcoRossignoli added the feature-request New feature request label Sep 18, 2019
@MarcoRossignoli
Copy link
Collaborator

MarcoRossignoli commented Sep 18, 2019

I'm not sure that is possible with current file format FWIK coverage format fail save only branches/sequence points visited but we don't know who is the test top caller.
I think that this feature should integrate with tests platform(i.e. xunit).
I don't know how vs do it, maybe @vagisha-nidhi can help here or can direct us to correct team, or also @bradwilson(xunit) could tell us if know something about it.

Copy link

This issue is stale because it has been open for 90 days with no activity.

@github-actions github-actions bot added the stale label Jul 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature request stale
Projects
None yet
Development

No branches or pull requests

6 participants