Skip to content
Snippets Groups Projects
Commit bd58f6f7 authored by Jan Tattermusch's avatar Jan Tattermusch
Browse files

fix C# coverage on windows

parent 67306daa
No related branches found
No related tags found
No related merge requests found
...@@ -512,13 +512,13 @@ class CSharpLanguage(object): ...@@ -512,13 +512,13 @@ class CSharpLanguage(object):
# for test coverage, run all tests from the same assembly at once # 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 # on Windows, things get more complicated as we need to run the code coverage tool
if self.platform == 'windows': 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, '-target:%s' % assembly_file,
'-targetdir:src\\csharp', '-targetdir:src\\csharp',
'-targetargs:%s' % ' '.join(nunit_args), '-targetargs:%s' % ' '.join(nunit_args),
'-filter:+[Grpc.Core]*', '-filter:+[Grpc.Core]*',
'-register:user', '-register:user',
'-output:coverage_csharp_%s.xml' % assembly] '-output:src\\csharp\\coverage_csharp_%s.xml' % assembly]
else: else:
cmdline = runtime_cmd + [assembly_file] + nunit_args cmdline = runtime_cmd + [assembly_file] + nunit_args
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment