title: Unexpected token '' at position 3 in selection expression
body: <p>I am executing a batch script in Jenkins Job.</p>
  
  <pre><code>C:\Users\Administrator\AppData\Local\Apps\OpenCover\OpenCover.Console.exe "-target:C:\Program Files (x86)\NUnit.org\nunit-console\nunit3-console.exe" "-targetargs:C:\Test\src\Example.Tests\bin\Debug\example.Tests.dll --where "cat == Unit" -register:Administrator
  </code></pre>
  
  <p>I used Filter as well but no use.</p>
  
  <pre><code>C:\Users\Administrator\AppData\Local\Apps\OpenCover\OpenCover.Console.exe "-target:C:\Program Files (x86)\NUnit.org\nunit-console\nunit3-console.exe" "-targetargs:C:\Test\src\Example.Tests\bin\Debug\example.Tests.dl -filter:"+[Unit]*" -register:Administrator
  </code></pre>
  
  <p>This batch command has a where condition (--where "cat == Unit"). When I execute this I am getting below error.</p>
  
  <p>Test Files</p>
  
  <pre><code>  C:\Test\src\Example.Tests\bin\Debug\example.Tests.dll
      ==
      Unit
  
  Test Filters
      Where: cat
  
  Unexpected token '' at position 3 in selection expression.
  Committing...
  No results, this could be for a number of reasons. The most common reasons are:
      1) missing PDBs for the assemblies that match the filter please review the
      output file and refer to the Usage guide (Usage.rtf) about filters.
      2) the profiler may not be registered correctly, please refer to the Usage
      guide and the -register switch.
  </code></pre>
  
  <p>Because of this error I am not able to get Code Coverage. Please suggest.I found below link but I am unable to get this done.</p>
  
  <pre><code>https://github.com/codecov/example-csharp
  </code></pre>
  
  <p>updated error Logs.</p>
  
  <pre><code>Incorrect Arguments: The argument 'cat == Unit' is not recognised
  
  Usage:
      ["]-target:&lt;target application&gt;["]
      [["]-targetdir:&lt;target directory&gt;["]]
      [["]-searchdirs:&lt;additional PDB directory&gt;[;&lt;additional PDB directory&gt;][;&lt;additional PDB directory&gt;]["]]
      [["]-targetargs:&lt;arguments for the target process&gt;["]]
      [-register[:user]]
      [["]-output:&lt;path to file&gt;["]]
      [-mergeoutput
      [["]-filter:&lt;space separated filters&gt;["]]
      [["]-filterfile:&lt;path to file&gt;["]]
      [-nodefaultfilters]
      [-regex]
      [-mergebyhash]
      [-showunvisited]
      [-returntargetcode[:&lt;opencoverreturncodeoffset&gt;]]
      [-excludebyattribute:&lt;filter&gt;[;&lt;filter&gt;][;&lt;filter&gt;]]
      [-excludebyfile:&lt;filter&gt;[;&lt;filter&gt;][;&lt;filter&gt;]]
      [-coverbytest:&lt;filter&gt;[;&lt;filter&gt;][;&lt;filter&gt;]]
      [["]-excludedirs:&lt;excludedir&gt;[;&lt;excludedir&gt;][;&lt;excludedir&gt;]["]]
      [-hideskipped:File|Filter|Attribute|MissingPdb|All,[File|Filter|Attribute|MissingPdb|All]]
      [-log:[Off|Fatal|Error|Warn|Info|Debug|Verbose|All]]
      [-service[:byname]]
      [-servicestarttimeout:&lt;minutes+seconds e.g. 1m23s&gt;
      [-communicationtimeout:&lt;integer, e.g. 10000&gt;
      [-threshold:&lt;max count&gt;]
      [-enableperformancecounters]
      [-skipautoprops]
      [-oldStyle]
  or
      -?
  or
      -version
  
  For further information on the command line please visit the wiki
      https://github.com/OpenCover/opencover/wiki/Usage
  
  Filters:
      Filters are used to include and exclude assemblies and types in the
      profiler coverage; see the Usage guide. If no other filters are supplied
      via the -filter option then a default inclusive all filter +[*]* is
      applied.
  Logging:
      Logging is based on log4net logging levels and appenders - defaulting
      to a ColouredConsoleAppender and INFO log level.
  Notes:
      Enclose arguments in quotes "" when spaces are required see -targetargs.
  </code></pre>