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 · 7 comments
Open

Is it possible to get coverage by tests? #117

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

Comments

@yamac-kurtulus
Copy link

@yamac-kurtulus yamac-kurtulus commented Jun 11, 2018

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

This comment has been minimized.

Copy link
Owner

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

@hack2root

This comment has been minimized.

Copy link

@hack2root hack2root commented Jun 18, 2018

you can see it in Visual Studio 2017
screenshot 1

@yamac-kurtulus

This comment has been minimized.

Copy link
Author

@yamac-kurtulus yamac-kurtulus commented Jun 18, 2018

@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

This comment has been minimized.

Copy link
Contributor

@latop2604 latop2604 commented Jun 18, 2018

FYI, It's an enterprise feature, not professional

@yamac-kurtulus

This comment has been minimized.

Copy link
Author

@yamac-kurtulus yamac-kurtulus commented Jun 18, 2018

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

@lucasteles

This comment has been minimized.

Copy link

@lucasteles lucasteles commented Sep 17, 2019

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

@MarcoRossignoli

This comment has been minimized.

Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants
You can’t perform that action at this time.