Created
October 10, 2018 20:00
-
-
Save goyalmohit/b5955c88bcbe874476a2417512511ad3 to your computer and use it in GitHub Desktop.
Convert .coverage files to .coveragexml files for .NET Core Code coverage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The script doesn't work. Rolls to "Done" every time I run it.