-
Notifications
You must be signed in to change notification settings - Fork 388
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
[Bug] Coverlet is not counting the model properties #930
Comments
Hi @petli, thanks, so, when is the next release day? |
Do you have any date planned already, @MarcoRossignoli ? |
BTW not sure that the issue here is related to that new feature...the new feat will exclude autoprops. @ming-tsai can you attach your command line? |
Hi @MarcoRossignoli, dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --logger trx
|
Can you try with |
Same than warning : [coverlet] Unable to instrument module: source\repos\Project\Project.Test\bin\Debug\netcoreapp3.0\System.ComponentModel.Annotations.dll because : No symbol found for file: source\repos\Project\Project.Test\bin\Debug\netcoreapp3.0\System.ComponentModel.Annotations.dll [source\repos\Project\Project.Test\Project.Test.csproj]
warning : [coverlet] Unable to instrument module: source\repos\Project\Project.Test\bin\Debug\netcoreapp3.0\System.Text.Encodings.Web.dll because : No symbol found for file: source\repos\Project\Project.Test\bin\Debug\netcoreapp3.0\System.Text.Encodings.Web.dll [source\repos\Project\Project.Test\Project.Test.csproj] |
Warnings are ok, but for your problem we need a repro because is not expected, we got similar issue on |
Hi @MarcoRossignoli, |
Hi @MarcoRossignoli, Project |
Hi @MarcoRossignoli, |
Sorry @ming-tsai I'm bit busy these days...I'll think to work on it in the weekend 🙇 |
Hiya 👋, |
@ming-tsai Sorry for the delay, busy times I'll take a look asap |
Ok @MarcoRossignoli, let me know when has any update |
Thanks for the patience and sorry! |
Don't worry 🧐, I will use v2.7.0 until fix this issue |
@ming-tsai I cannot repro with your sample |
Hi @MarcoRossignoli, I'm going to test in my computer |
Hi @MarcoRossignoli, sorry for the late response, my output is the same as yours but I'm sure that it is not counting the model properties. |
I'll take another deep look to understand the counting difference, I'm pretty sure that the culprit is some accounting fix |
Hi @MarcoRossignoli, please update the labels |
@ming-tsai I did some test with nightly and 100% comes back, so as @petli said should be fixed on master.
Can you try with nightly and confirm? https://github.com/coverlet-coverage/coverlet/blob/master/Documentation/ConsumeNightlyBuild.md version <PackageReference Include="coverlet.msbuild" Version="3.0.0-preview.18.g183cbed8a6">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference> |
Hi @MarcoRossignoli, |
Yep, btw a double check could help to be sure of it and close this, release is very close. |
Thanks guys, it is work |
Hi there,
I'm using
coverlet.msbuild
to generate the coverlet and publish to SonarScanner, recently I upgrade v2.7.0 to v2.9.0, but on v2.9.0 is not counting the model properties.Evidence
v2.9.0
v2.7.0
The text was updated successfully, but these errors were encountered: