fix C# coverage on windows

This commit is contained in:
Jan Tattermusch 2016-04-09 16:57:55 -07:00
parent 67306daaa2
commit bd58f6f76b
1 changed files with 2 additions and 2 deletions

View File

@ -512,13 +512,13 @@ class CSharpLanguage(object):
# for test coverage, run all tests from the same assembly at once
# on Windows, things get more complicated as we need to run the code coverage tool
if self.platform == 'windows':
cmdline = ['packages\OpenCover.4.6.519\tools\OpenCover.Console.exe',
cmdline = ['src\\csharp\\packages\\OpenCover.4.6.519\\tools\\OpenCover.Console.exe',
'-target:%s' % assembly_file,
'-targetdir:src\\csharp',
'-targetargs:%s' % ' '.join(nunit_args),
'-filter:+[Grpc.Core]*',
'-register:user',
'-output:coverage_csharp_%s.xml' % assembly]
'-output:src\\csharp\\coverage_csharp_%s.xml' % assembly]
else:
cmdline = runtime_cmd + [assembly_file] + nunit_args