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
With a module containing code generated by the MVVM Toolkit coverage information from Coverlet will not be created.
I have a simple repro repo here: https://github.com/will-jj/MVVM-Coverage
Additionally the following log information may provide further insight into the cause of the issue:
[coverlet] Unable to instrument module: C:\x\CoverageIssue\CoverageIssue.Tests\bin\Debug\net6.0-windows\CoverageIssue.dll, pdb without local source files, [C:\x\CoverageIssue\CoverageIssue\CommunityToolkit.Mvvm.SourceGenerators\CommunityToolkit.Mvvm.SourceGenerators.ObservablePropertyGenerator\CoverageIssue.ViewModelUsesObservableProperty.cs]
Hi, this is a known issue, where Coverlet needs a hint from the code generator that the source code is generated. That hint is that the file ends in .g.cs, rather than plain .cs. If MVVM Toolkit can change that in the filenames being generated Coverlet will handle it correctly.
With a module containing code generated by the MVVM Toolkit coverage information from Coverlet will not be created.
I have a simple repro repo here: https://github.com/will-jj/MVVM-Coverage
Additionally the following log information may provide further insight into the cause of the issue:
The original issue was opened here: CommunityToolkit/dotnet#264
The text was updated successfully, but these errors were encountered: