You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior
This test should pass. Setting 'true' for inherited attributes doesn't change the result.
Actual behavior
The test fails. In fact, the generated static class "Coverlet.Core.Instrumentation.Tracker.{assemblyName}_{guid}" contains no defined custom attributes.
Configuration (please complete the following information):
Coverlet version: 8.0.0 (bug also found on 6.0.4) via dotnet test --collect:"XPlat Code Coverage"
Library .NET versions: .NET 10 and .NET Standard 2.0
Test .NET versions: .NET 10, .NET 9 and .NET 4.8
OS: Mac and Windows Server 2025
Additional context
The CompilerGeneratedAttribute was supposedly added as part of #1229 due to issue #1191.
It is not clear to me that this change ever actually added the CompilerGeneratedAttribute to the resulting created Tracker however.
Activity
Bertk commentedon Apr 16, 2026
coverlet/src/coverlet.core/Instrumentation/ModuleTrackerTemplate.cs
Line 21 in e1ada73
Please note: the CompilerGeneratedAttribute is still in the source file.
[-][BUG] Coverlet Tracker Missing CompilerGeneratedAttribute[/-][+]Coverlet Tracker Missing CompilerGeneratedAttribute[/+]Ensure Tracker type has required attributes
Ensure Tracker type has required attributes
Eliminates phantom branches from async try-finally with await stateme…
Bertk commentedon May 16, 2026
Solved with PR #1904
40 remaining items
deps: Bump the testing group with 2 updates (#38)
Bump coverlet.collector and 3 others (#6)
Bump coverlet.collector from 10.0.0 to 10.0.1 (#220)
(PATCH): Bump the csharp-deps group with 8 updates (#31)
deps: bump `coverlet.collector` from 10.0.0 to 10.0.1 (#10)
Bump coverlet.collector from 6.0.4 to 10.0.1 (#19)
Bump coverlet.collector and 7 others (#86)
chore: Bump coverlet.collector from 8.0.1 to 10.0.1 (#283)
Bump coverlet.collector from 6.0.4 to 10.0.1 (#6)
Bump the all-nuget group with 26 updates (#212)
[nuget][Find]- Bump Azure.Identity and 26 others (#705)
Bump coverlet.collector from 10.0.0 to 10.0.1 (#74)
Bump the test-dependencies group with 3 updates (#2)
Bump coverlet.msbuild from 8.0.0 to 10.0.1 (#893)
Bump the nuget group with 6 updates (#3)