-
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
Unable to instrument module #1007
Comments
@MarcoRossignoli : I am kind of stuck with this issue. It would be really helpful if you can take a look at this issue. Thanks. |
the warning for Also can you try to use collectors https://github.com/coverlet-coverage/coverlet/blob/master/Documentation/VSTestIntegration.md? |
@MarcoRossignoli : I think I figured out the root cause of the issue. If I change the build configuration from Release to Debug, it is working. Any idea why? |
@subramaniamb it's a lot more ideal to run code coverage in Debug mode because that is when the structure of the compiled code most resembles the source code. In Release mode, applied optimizations could cause the final output to drastically deviate from the source code |
@MarcoRossignoli I have the same issue for net5.0 as well. 😭 Understand it label as known issue for now, appreciate if any solution. |
@subramaniamb @hello-ccchen have you tried with collectors driver? |
I haven't. Could you please elaborate on collectors driver? |
Collectors driver is a way where we use VSTest platform as orchestrator of coverage workflow. Today is the most reliable way to use coverlet due to default behavior of test platform. |
Tried but not working. No code coverage at all Report:
|
@hello-ccchen are you using last version of coverlet lib? |
@MarcoRossignoli Yes. is the latest coverlet lib. My dotnet is the latest as well net5.0 |
Can yoy try to enable logs?Pay attention in logs could be present sensitive data |
Closing for stale conversation, feel free to reopen if needed. |
I have a Xamarin Forms project which has unit tests written using NUnit targeting .Net Core 3.1. I am unable to get the code coverage generated due to an error/warning. Please find below the logs
The text was updated successfully, but these errors were encountered: