Unexpected token '' at position 3 in selection expression Unexpected token '' at position 3 in selection expression jenkins jenkins

Unexpected token '' at position 3 in selection expression


This looks like nonsense

"-targetargs:C:\Test\src\Example.Tests\bin\Debug\example.Tests.dl -filter:"+[Unit]*" 

Something like this should work better

"-targetargs:C:\Test\src\Example.Tests\bin\Debug\example.Tests.dll" -filter:"+[*Unit]*" 

I recommend you to try powershell intstead of batch files

Here is the sample script: https://github.com/rpokrovskij/opencover4vs.ps1

Put it to solution folder, modify first line , and I hope it will work for you, without additional changes.