NUnit Console Arguments

Hi! I have a problem passing command line arguments. I am using nUnit as a test framework. When I want to run ConsoleRunner I want to pass the "where" filter by category. As a result, I get the error:

The command "D:\...\tools\dotCover.exe cover --TargetArguments:.\bin\Debug\GH.UnitTests.dll D:\...\coverageConfigFile.xml" exited with code -2. 

I using config file:

<?xml version="1.0" encoding="utf-8"?>
<CoverageParams>
<TargetExecutable>..\..\packages\...\nunit3-console.exe --where cat!=MyCategory</TargetExecutable>
<TargetWorkingDir></TargetWorkingDir>
<TempDir></TempDir>
<Output>AppCoverageReport.xml</Output>
<ReportType>xml</ReportType>
<InheritConsole>True</InheritConsole>
<AnalyzeTargetArguments>True</AnalyzeTargetArguments>
<Filters>
<IncludeFilters>
<FilterEntry>
<ModuleMask>MyProject</ModuleMask>
</FilterEntry>
</IncludeFilters>
</Filters>
</CoverageParams>

And I have a message in Output window:

[JetBrains dotCover] TargetExecutable: file does not exist: D:\Projects\...tools\nunit3-console.exe --where cat!=NeedsFixing.

Please help me, how I can correct pass where parameter?

 

0

Please sign in to leave a comment.