NUnit problem

I'm a consultant and have used TeamCity on a couple of different projects before but now when I'm using it at a new customer I'm running into problems with the NUnit tests.

I get this error :

[16:44:40]: Project "IfsfPosEpsTerminal.sln.teamcity.patch.tcprojx" (Build_TeamCity_generated_5f4dccd3f56b4f2d9bad94a5e0229009;NUnit_TeamCity_generated_5f4dccd3f56b4f2d9bad94a5e0229009 target(s)): (22s)
[16:45:02]: [Project "IfsfPosEpsTerminal.sln.teamcity.patch.tcprojx" (Build_TeamCity_generated_5f4dccd3f56b4f2d9bad94a5e0229009;NUnit_TeamCity_generated_5f4dccd3f56b4f2d9bad94a5e0229009 target(s)):] D:\TeamCity\buildAgent\work\513e3fdfef1004c8\Support\IfsfPosEpsTerminal\IfsfPosEpsTerminal.sln.teamcity.patch.tcprojx(10, 5): d:\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher.exe "@@" D:\TeamCity\buildAgent\temp\buildTmp\tmp7C65.tmp exited with code -1.


I got a different error before but after checking in the forum I changed the path to the test assembly from **/Release/*Tests.dll to the relative path from the sln file. And the error message changed to this instead.

Any ideas? I'm starting to get desperate

4 comments
Comment actions Permalink

What is the version of NUnit, TeamCity?

Check all dependent assemblies are available on the agent machine.

Attach files from <agent>/temp/buildTmp/TeamCity.NET if any.

Enable .NET logging on the build agent: replace <agent>/plugins/dotnetPlugin/bin/teamcity-log4net.xml with teamcity-log4net-debug.xml and attach produced build log

Thanks!

0
Comment actions Permalink

Could you contact me over email at linus [at] kvarnhammar dot com.

I don't want to post logfiles here on the forum.

Thanks.

0
Comment actions Permalink

I did as you said (changing the log4net xml file to debug) but it doesn't give me more information than before :

[12:30:48]: sln2008 output: 2009-11-12 12:30:47,951 [10508] DEBUG JetBrains.TeamCity.Utils.ProcessRunnerBase - 2009-11-12 12:30:47,951 [10508] DEBUG JetBrains.TeamCity.Utils.ProcessRunnerBase - "D:\TeamCity\buildAgent\work\513e3fdfef1004c8\Support\IfsfPosEpsTerminal\IfsfPosEpsTerminal.sln.teamcity.patch.tcprojx" (Build_TeamCity_generated_b1db33dc5cb54b34a6c2a40dda9b6adf;NUnit_TeamCity_generated_b1db33dc5cb54b34a6c2a40dda9b6adf target) (1) -> "D:\TeamCity\buildAgent\work\513e3fdfef1004c8\Support\IfsfPosEpsTerminal\IfsfPosEpsTerminal.sln.teamcity.patch.tcprojx" (Build_TeamCity_generated_b1db33dc5cb54b34a6c2a40dda9b6adf;NUnit_TeamCity_generated_b1db33dc5cb54b34a6c2a40dda9b6adf target) (1) -> 2009-11-12 12:30:47,951 [10508] DEBUG JetBrains.TeamCity.Utils.ProcessRunnerBase - (NUnit_TeamCity_generated_b1db33dc5cb54b34a6c2a40dda9b6adf target) -> (NUnit_TeamCity_generated_b1db33dc5cb54b34a6c2a40dda9b6adf target) -> 2009-11-12 12:30:47,951 [10508] DEBUG JetBrains.TeamCity.Utils.ProcessRunnerBase -  D:\TeamCity\buildAgent\work\513e3fdfef1004c8\Support\IfsfPosEpsTerminal\IfsfPosEpsTerminal.sln.teamcity.patch.tcprojx(10,5): error : d:\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher.exe "@@" D:\TeamCity\buildAgent\temp\buildTmp\tmpDFA2.tmp exited with code -1.   D:\TeamCity\buildAgent\work\513e3fdfef1004c8\Support\IfsfPosEpsTerminal\IfsfPosEpsTerminal.sln.teamcity.patch.tcprojx(10,5): error : d:\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher.exe "@@" D:\TeamCity\buildAgent\temp\buildTmp\tmpDFA2.tmp exited with code -1. 2009-11-12 12:30:47,951 [10508] DEBUG JetBrains.TeamCity.Utils.ProcessRunnerBase - 2009-11-12 12:30:47,951 [10508] DEBUG JetBrains.TeamCity.Utils.ProcessRunnerBase -    24 Warning(s)     24 Warning(s) 2009-11-12 12:30:47,951 [10508] DEBUG JetBrains.TeamCity.Utils.ProcessRunnerBase -    1 Error(s)     1 Error(s) 2009-11-12 12:30:47,951 [10508] DEBUG JetBrains.TeamCity.Utils.ProcessRunnerBase -

When I look in the directory D:\TeamCity\buildAgent\temp\buildTmp it's empty.

0

Please sign in to leave a comment.