I was trying to build hangfire via
build.bat but was seeing the following error:
Running OpenCover/xUnit for 'Hangfire.Core.Tests'...
Using directory C:\Dev\Hangfire\tests\Hangfire.Core.Tests\bin\Release
Incorrect Arguments: The argument [*.Tests]* is not recognised
Error: 7/12/2017 10:00:39 AM:
At C:\Dev\Hangfire\packages\psake.4.4.1\tools\psake.psm1:147 char:22 + throw <<<< ("Exec: " + $errorMessage) [<<==>>] Exception: Exec: Error executing command
.$opencover -target:"$xunit_path" -targetargs:"`"$assembly`" -noshadow $extra" -filter:"$coverageFilter" -mergeoutput -output:"$coverageFile" -register:user -returntargetcode .
ERROR CODE: 1
At the time, I had powershell v2 installed. Upgrading to v5 fixed the problem. Looks like there were some quote escaping issues. Just wanted to report my findings since I didn't see any mention of it in the readme/repo. I'm not sure what the minimum required version is but it seems v2 is too low.