GenerateCoverageReport.bat 797 B

12345678910111213141516171819202122232425
  1. if not exist "%~dp0GeneratedReports" mkdir "%~dp0GeneratedReports"
  2. for /d %%a in (
  3. "%~dp0\packages\OpenCover.*"
  4. ) do set "openCoverFolder=%%~fa\"
  5. for /d %%a in (
  6. "%~dp0\packages\Microsoft.TestPlatform.*"
  7. ) do set "microPlat=%%~fa\"
  8. for /d %%a in (
  9. "%~dp0\packages\ReportGenerator.*"
  10. ) do set "repGen=%%~fa\"
  11. "%openCoverFolder%\tools\OpenCover.Console.exe" ^
  12. -register:user ^
  13. -target:"%microPlat%\tools\net451\Common7\IDE\Extensions\TestPlatform\vstest.console.exe" ^
  14. -targetargs:"%~dp0\WhiteTests\bin\Debug\WhiteTests.dll" ^
  15. -filter:"+[SketchAssistantWPF*]*" ^
  16. -mergebyhash ^
  17. -output:"%~dp0\GeneratedReports\opencovertests.xml"
  18. "%repGen%\tools\net47\ReportGenerator.exe" ^
  19. -reports:"%~dp0\GeneratedReports\opencovertests.xml" ^
  20. -targetdir:"%~dp0\GeneratedReports\ReportGeneratorOutput"