diff --git a/build/BuildRelease.bat b/build/BuildRelease.bat index d95033e2..a64d4a71 100644 --- a/build/BuildRelease.bat +++ b/build/BuildRelease.bat @@ -2,12 +2,12 @@ setlocal set DOTNET_CLI_UI_LANGUAGE=en cd %~dp0../src -dotnet build System.Waf/System.Waf.sln -c Release -p:ContinuousIntegrationBuild=true +rem -p:ContinuousIntegrationBuild=true ... Workaround: does not work for coverage +dotnet build System.Waf/System.Waf.sln -c Release pwsh -c "Get-ChildItem -Recurse | Where-Object {$_.Name -eq 'TestResults'} | Remove-Item -Force -Recurse" -dotnet test System.Waf/System.Waf.sln -c Release --no-build --collect "Code Coverage" +dotnet test System.Waf/System.Waf.sln -c Release --no-build -mkdir ..\out\CodeCoverageReport -dotnet-coverage merge --output ../out/CodeCoverageReport/System.Waf.cobertura.xml --output-format cobertura "./**/TestResults/**/*.coverage" +dotnet-coverage merge --output ../out/CodeCoverage/System.Waf.cobertura.xml --output-format cobertura "./**/TestResults/**/*.coverage" -reportgenerator -reports:../out/CodeCoverageReport/System.Waf.cobertura.xml -targetdir:../out/CodeCoverageReport -reporttypes:"MarkdownSummaryGithub" \ No newline at end of file +reportgenerator -reports:../out/CodeCoverage/System.Waf.cobertura.xml -targetdir:../out/CodeCoverage -reporttypes:"MarkdownSummaryGithub" \ No newline at end of file