TC6.5.4 (build 18046) runs nunit tests twice second run fails

Hi we use TC6.5.4 (build 18046).

We have the following setup

1.jpg
Tests get run but always twice. TeamCity looks like:

2.jpg

From the build log output I can see that the tests run fine at the first time. I also get coverage at the build!


So a test run looks like:

[Step 2/4] Starting: C:\BuildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher.exe #TeamCityImplicit
[18:13:59]: [Step 2/4] in directory: C:\TeamCity\buildAgent\work\CI_iTradeServer
[18:14:06]: [Step 2/4] JetBrains dotCover Console Runner v1.1.252.2. Copyright (c) 2009-2012 JetBrains s.r.o. All rights reserved.
[18:14:09]: [Step 2/4] Coverage session started [13/07/2012 18:14:09]
[18:14:13]: [Step 2/4] Start TeamCity NUnit Test Runner
[18:14:13]: [Step 2/4] Running NUnit-2.5.10 tests under .NET Framework v4.0 x86
[18:14:15]: [Step 2/4] [2012-07-13 18:14:15] [LONMW72277] [8020] [TestRunnerThread] [DEBUG]: Foobar
[18:14:15]: [Step 2/4] [2012-07-13 18:14:15] [LONMW72277] [8020] [TestRunnerThread] [DEBUG]: Test DEBUG message
[18:14:15]: [Step 2/4] [2012-07-13 18:14:15] [LONMW72277] [8020] [TestRunnerThread] [ERROR]: Test ERROR message
[18:14:15]: [Step 2/4] [2012-07-13 18:14:15] [LONMW72277] [8020] [TestRunnerThread] [INFO ]: Test INFO message
[18:14:15]: [Step 2/4] [2012-07-13 18:14:15] [LONMW72277] [8020] [TestRunnerThread] [DEBUG]: Test DEBUG message
[18:14:15]: [Step 2/4] [2012-07-13 18:14:15] [LONMW72277] [8020] [TestRunnerThread] [WARN ]: Test WARNING message
[18:14:15]: [Step 2/4] NCommonTests.dll (23s)
[18:14:15]: [NCommonTests.dll] NCommonTests.ConsoleRedirectorTests.ConsoleRedirector_TestRedirectionOfBoth
[18:14:15]: [NCommonTests.ConsoleRedirectorTests.ConsoleRedirector_TestRedirectionOfBoth] [Test Output] CONSOLE STDOUT TEST STDOUT REDIRECTION

... then the rest of the test suite executes. Then immediately it starts executing again:

[18:14:39]: [Step 2/4] NCommonTests.dll

Any ideas?
1 comment
Comment actions Permalink

Apologies forgot the erroneous bit of the log file!

[18:14:39]: [Step 2/4] NCommonTests.dll
[18:14:39]: [NCommonTests.dll] NCommonTests.ConsoleRedirectorTests.ConsoleRedirector_TestRedirectionOfBoth
[18:14:39]: [NCommonTests.ConsoleRedirectorTests.ConsoleRedirector_TestRedirectionOfBoth] Test(s) failed. System.IO.FileNotFoundException : Could not load file or assembly 'Common, Version=2.0.1.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
[18:14:39]: [NCommonTests.ConsoleRedirectorTests.ConsoleRedirector_TestRedirectionOfBoth] Test(s) failed. System.IO.FileNotFoundException : Could not load file or assembly 'Common, Version=2.0.1.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.    at NCommonTests.ConsoleRedirectorTests.ConsoleRedirector_TestRedirectionOfBoth()



Its seems as if it is missing our common code assembly.

But
a)why can't it find it?
b) why does it manage to find it in the 1st run
c) why does it run the tests twice in the 1st place?
0

Please sign in to leave a comment.