OLD | NEW |
(Empty) | |
| 1 @rem Runs C# tests for given assembly from command line. The Grpc.sln solution n
eeds to be built before running the tests. |
| 2 |
| 3 setlocal |
| 4 |
| 5 @rem enter src/csharp directory |
| 6 cd /d %~dp0\..\..\src\csharp |
| 7 |
| 8 if not "%CONFIG%" == "gcov" ( |
| 9 packages\NUnit.Runners.2.6.4\tools\nunit-console-x86.exe %* || goto :error |
| 10 ) else ( |
| 11 @rem Run all tests with code coverage |
| 12 |
| 13 packages\OpenCover.4.6.166\tools\OpenCover.Console.exe -target:"packages\NUnit
.Runners.2.6.4\tools\nunit-console-x86.exe" -targetdir:"." -targetargs:"%*" -fil
ter:"+[Grpc.Core]*" -register:user -output:coverage_results.xml || goto :error |
| 14 |
| 15 packages\ReportGenerator.2.3.2.0\tools\ReportGenerator.exe -reports:"coverage_
results.xml" -targetdir:"..\..\reports\csharp_coverage" -reporttypes:"Html;TextS
ummary" || goto :error |
| 16 |
| 17 @rem Generate the index.html file |
| 18 echo ^<html^>^<head^>^</head^>^<body^>^<a href='csharp_coverage/index.htm'^>cs
harp coverage^</a^>^<br/^>^</body^>^</html^> >..\..\reports\index.html |
| 19 ) |
| 20 |
| 21 endlocal |
| 22 |
| 23 goto :EOF |
| 24 |
| 25 :error |
| 26 echo Failed! |
| 27 exit /b %errorlevel% |
OLD | NEW |