-
Notifications
You must be signed in to change notification settings - Fork 386
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
how to use coverlet as project in a solution #600
Comments
Hi Nitin, it's not clear to me your question...would you like to have a coverage after run your test projects? |
Hello, we would not like to use coverlet as package. We want to bring source code into our solution, build the same and use that as dll to check the coverage on other projects. Also, we are using the release 5.2.2 version as its new and advance but the package(coverlet.collector) version is 1.1.0 |
Why?I mean coverlet needs some steps to work...if you want to use directly che code you need to follow more or less what console do https://github.com/tonerdo/coverlet/blob/master/src/coverlet.console/Program.cs#L64 Coverlet need to do some steps https://github.com/tonerdo/coverlet#how-it-works BTW we have future plan to expose coverlet core as stand alone package for custom coverage #212 |
Coverlet works in 3 different way and it depends on "drivers". |
Hello, |
As I've said above you can copy .net tool usage https://github.com/tonerdo/coverlet/blob/master/src/coverlet.console/Program.cs#L64 we don't have an example on codebase TL;DR; We don't have an example because at the moment core features are designed only for internal usage so they're not stable until we'll release core coverlet features as "standalone". |
At the moment we're blocked on vstest bug, after that fix we can go on with hiding all class and design a stable api to expose internal features microsoft/vstest#2221 |
You have an example in https://github.com/red4sec/TuringMachine More concretely in https://github.com/Red4Sec/TuringMachine/blob/master/src/TuringMachine.Core/Helpers/CoverageHelper.cs |
@Nitin5acc feel free to close if solved, thanks @shargon for the sample! |
@Nitin5acc related PR #628 |
Hello,
we would like to use this source code and create coverlet .net core projects in our application (sln) which can be used on other projects to check coverage.
We have taken the code from this repo and added it in our solution. However, no coverage is generated.
The text was updated successfully, but these errors were encountered: