Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Convert .coverage files to .coveragexml files for .NET Core Code coverage
Get-ChildItem -Recurse -Filter "*.coverage" | % {
$outfile = "$([System.IO.Path]::GetFileNameWithoutExtension($_.FullName)).coveragexml"
$output = [System.IO.Path]::Combine([System.IO.Path]::GetDirectoryName($_.FullName), $outfile)
"Analyse '$($_.Name)' with output '$outfile'..."
. $env:USERPROFILE\.nuget\packages\microsoft.codecoverage\15.8.0\build\netstandard1.0\CodeCoverage\CodeCoverage.exe analyze /output:$output $_.FullName
}
"Done"
@command0r

This comment has been minimized.

Copy link

@command0r command0r commented Feb 11, 2019

The script doesn't work. Rolls to "Done" every time I run it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.