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
Either the update to the dotnet-coverage tool or an update to the preview version of the Microsoft Test SDK fixes duplicate publishing of code coverage files to the **/ln/ folder.
The test for excluding the /ln/ folder needs to be removed as code coverage files are only being published under the /ln/ folder and are currently being filtered out.
Version of test SDK:
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.5.0-preview-20221003-04" />
old:
$coverageFiles = @(Get-ChildItem "$RepoRoot/test/*.cobertura.xml" -Recurse | Where {$_.FullName -notlike "*/In/*" -and $_.FullName -notlike "*\In\*" })
new:
$coverageFiles = @(Get-ChildItem "$RepoRoot/test/*.cobertura.xml" -Recurse )
What preview version of the test SDK are you trying this with? The latest CI build of main for this repo shows that coverage is working. You issue description suggests that it ought to be broken.
If a preview test SDK 'fixes' the double reporting, then I suppose we can't apply the fix you propose until this template adopts that SDK. If we 'fix' this too soon, I suppose we'll be back to double-coverage collection in the template, won't we?
Either the update to the dotnet-coverage tool or an update to the preview version of the Microsoft Test SDK fixes duplicate publishing of code coverage files to the **/ln/ folder.
The test for excluding the /ln/ folder needs to be removed as code coverage files are only being published under the /ln/ folder and are currently being filtered out.
See #161
The text was updated successfully, but these errors were encountered: