JetBrains / meta-runner-power-pack

A set of Meta-runners for TeamCity
Apache License 2.0
257 stars 125 forks source link

Cannot run tests: Method invocation failed #104

Open StephenDrewLDS opened 7 years ago

StephenDrewLDS commented 7 years ago
[19:46:49]Step 2/2: xUnit.net + dotCover    (2s)
[19:46:49][Step 2/2] Step 1/1: Install Test runner, Create config, Run tests, Update coverage (PowerShell) (2s)
[19:46:49][Step 1/1] PowerShell Executable: C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
[19:46:49][Step 1/1] Working directory: C:\TeamCity\buildAgent\work\9e44db9594c498c9
[19:46:49][Step 1/1] Command: C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
[19:46:49][Step 1/1] PowerShell arguments: -NoProfile, -NonInteractive, -ExecutionPolicy, ByPass, -File, C:\TeamCity\buildAgent\temp\buildTmp\powershell1172738450403842208.ps1
[19:46:50][Step 1/1] Feeds used:
[19:46:50][Step 1/1]   http://www.nuget.org/api/v2/
[19:46:50][Step 1/1] 
[19:46:51][Step 1/1]   GET https://www.nuget.org/api/v2/FindPackagesById()?id='xunit.runner.console'&semVerLevel=2.0.0
[19:46:51][Step 1/1]   OK https://www.nuget.org/api/v2/FindPackagesById()?id='xunit.runner.console'&semVerLevel=2.0.0 180ms
[19:46:51][Step 1/1] Package "xunit.runner.console.2.2.0" is already installed.
[19:46:52][Step 1/1] ##teamcity[buildStatus text='Method invocation failed because [System.Object[]
[19:46:52]
[Step 1/1] Value should end with "'"
Valid property list format is (name( )*=( )*'escaped_value'( )*)* where escape symbol is "|"
[19:46:52][Step 1/1] ] does not contain a method named 'Trim'.' status='FAILURE']
[19:46:52][Step 1/1] ##teamcity[message text='Method invocation failed because [System.Object[]
[19:46:52]
[Step 1/1] Value should end with "'"
Valid property list format is (name( )*=( )*'escaped_value'( )*)* where escape symbol is "|"
[19:46:52][Step 1/1] ] does not contain a method named 'Trim'.' status='ERROR']
[19:46:52][Step 1/1] Process exited with code 1
[19:46:52][Step 1/1] Process exited with code 1
[19:46:52][Step 1/1] Step Install Test runner, Create config, Run tests, Update coverage (PowerShell) failed
vborza commented 6 years ago

same issue

whatevergeek commented 6 years ago

We're facing the same issue. Any update on this?

nickamckenna commented 6 years ago

I have the same issue. Did anyone work out a fix?

valeriob commented 6 years ago

yep, remove .Trim()

https://github.com/JetBrains/meta-runner-power-pack/pull/111/files

nickamckenna commented 6 years ago

Thanks, that worked!