post_tests_csharp.bat 724 B

123456789101112131415161718192021
  1. @rem Runs C# tests for given assembly from command line. The Grpc.sln solution needs to be built before running the tests.
  2. setlocal
  3. @rem enter src/csharp directory
  4. cd /d %~dp0\..\..\src\csharp
  5. @rem Generate code coverage report
  6. @rem TODO(jtattermusch): currently the report list is hardcoded
  7. packages\ReportGenerator.2.4.4.0\tools\ReportGenerator.exe -reports:"coverage_csharp_*.xml" -targetdir:"..\..\reports\csharp_coverage" -reporttypes:"Html;TextSummary" || goto :error
  8. @rem Generate the index.html file
  9. echo ^<html^>^<head^>^</head^>^<body^>^<a href='csharp_coverage/index.htm'^>csharp coverage^</a^>^<br/^>^</body^>^</html^> >..\..\reports\index.html
  10. endlocal
  11. goto :EOF
  12. :error
  13. echo Failed!
  14. exit /b %errorlevel%