NUnit runner bug?

When I try new NUnit runner (in EAP build 15509), even all the tests passed and code coverage report is produced. But I see a strange error message in build log and TeamCity shows that my "NUnit runner crashed". Here is a partial of the build log file:

[00:44:15]: Step 2/2
[00:44:15]:     [Step 2/2] Using runner: NUnit
[00:44:15]:     [Step 2/2] Starting: E:\Works\TeamCityBuildAgent\bin\..\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher.exe #TeamCityImplicit
[00:44:15]:     [Step 2/2] in directory: E:\Works\TeamCityBuildAgent\work\d2ee8a953e14419c
[00:44:20]:     [Step 2/2] NCover Complete v3.4.12.6869 x86 (Administrator)
[00:44:20]:     [Step 2/2] Copyright (c) 2007 - 2010 Gnoso Inc.
[00:44:20]:     [Step 2/2] License Key: XXXXXXXXXXXXXXXX
[00:44:20]:     [Step 2/2] Registered to Customer #: 1 for 1 Machine
[00:44:20]:     [Step 2/2] Command: "E:\Works\TeamCityBuildAgent\plugins\dotnetPlugin\bin\JetBrains.TeamCity.PlatformProcessRunner.v4.0.x86.exe"
[00:44:20]:     [Step 2/2] Command Args: "x86" "v4.0" "E:\Works\TeamCityBuildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher.exe" "@@" "E:\Works\TeamCityBuildAgent\temp\buildTmp\tmpEAB5.tmp"
[00:44:20]:     [Step 2/2] Working Directory:
[00:44:20]:     [Step 2/2] Included Assemblies: .*
[00:44:20]:     [Step 2/2] ******************* Program Output *******************
[00:44:21]:     [Step 2/2] Process 'JetBrains.TeamCity.PlatformProcessRunner.v4.0.x86' [PID 7840] has begun profiling.
[00:44:23]:     [Step 2/2] Start TeamCity NUnit Test Runner
[00:44:23]:     [Step 2/2] Running NUnit-2.5.7 tests under .NET Framework v4.0 x86
[00:44:23]:     [Step 2/2] MvcStore.Service.Data.NHibernate.Tests.dll
[00:44:23]:         [MvcStore.Service.Data.NHibernate.Tests.dll] MvcStore.Service.Data.NHibernate.Tests.Mappings.CategoryMapTests.Can_add_new_category
[00:44:28]:             [MvcStore.Service.Data.NHibernate.Tests.Mappings.CategoryMapTests.Can_add_new_category] [Test Output]

    drop table if exists "Category"


    drop table if exists "Product"


    create table "Category" (
        Id  integer,
       Name TEXT,
       Description TEXT,
       primary key (Id)
    )


    create table "Product" (
        Id  integer,
       Name TEXT,
       Price NUMERIC,
       Description TEXT,
       Category_id INTEGER,
       primary key (Id)
    )

[00:44:29]:         [MvcStore.Service.Data.NHibernate.Tests.dll] MvcStore.Service.Data.NHibernate.Tests.Mappings.ProductMapTests.Can_add_new_product
[00:44:29]:             [MvcStore.Service.Data.NHibernate.Tests.Mappings.ProductMapTests.Can_add_new_product] [Test Output]

    drop table if exists "Category"


    drop table if exists "Product"


    create table "Category" (
        Id  integer,
       Name TEXT,
       Description TEXT,
       primary key (Id)
    )


    create table "Product" (
        Id  integer,
       Name TEXT,
       Price NUMERIC,
       Description TEXT,
       Category_id INTEGER,
       primary key (Id)
    )

[00:44:30]:     [Step 2/2] NUnit Error: System.IO.FileNotFoundException: Could not load file or assembly 'MvcStore.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
File name: 'MvcStore.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'

Server stack trace:
   at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)
   at System.Reflection.RuntimeAssembly.GetExportedTypes()
   at NUnit.Core.CoreExtensions.InstallAdhocExtensions(Assembly assembly)
   at NUnit.Core.Builders.TestAssemblyBuilder.Load(String path)
   at NUnit.Core.Builders.TestAssemblyBuilder.Build(String assemblyName, Boolean autoSuites)
   at NUnit.Core.Builders.TestAssemblyBuilder.Build(String assemblyName, String testName, Boolean autoSuites)
   at NUnit.Core.TestSuiteBuilder.Build(TestPackage package)
   at NUnit.Core.SimpleTestRunner.Load(TestPackage package)
   at NUnit.Core.ProxyTestRunner.Load(TestPackage package)
   at NUnit.Core.ProxyTestRunner.Load(TestPackage package)
   at NUnit.Core.RemoteTestRunner.Load(TestPackage package)
   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)

Exception rethrown at [0]:
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at NUnit.Core.TestRunner.Load(TestPackage package)
   at JetBrains.TeamCity.NUnitLauncher.NUnitRunner.LoadTest(String testAssembly, String testName, TestRunner runner) in c:\BuildAgent\work\6223f0c8b1d45aaa\src\NUnitLauncher\src\NUnit-2.5\NUnitRunner.cs:line 44
   at JetBrains.TeamCity.NUnitLauncher.AssemblyTest.LoadTestDomain() in c:\BuildAgent\work\6223f0c8b1d45aaa\src\NUnitLauncher\src\AssemblyTest.cs:line 76
   at JetBrains.TeamCity.NUnitLauncher.LoadTestDomainAction.Action(AssemblyTest test) in c:\BuildAgent\work\6223f0c8b1d45aaa\src\NUnitLauncher\src\LoadTestDomainAction.cs:line 16
   at JetBrains.TeamCity.NUnitLauncher.TryOneAssemblyTest.Action() in c:\BuildAgent\work\6223f0c8b1d45aaa\src\NUnitLauncher\src\TryOneAssemblyTest.cs:line 19
   at JetBrains.TeamCity.NUnitLauncher.TryOneAssembly.Do() in c:\BuildAgent\work\6223f0c8b1d45aaa\src\NUnitLauncher\src\TryOneAssembly.cs:line 40

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

[00:44:30]:     [Step 2/2] ##teamcity[buildStatus text='NUnit runner crashed on E:\Works\TeamCityBuildAgent\work\d2ee8a953e14419c\trunk\src\csharp\Service.Data.NHibernate.Tests\obj\Debug\MvcStore.Service.Data.NHibernate.Tests.dll {build.status.text}' status='ERROR']
[00:44:30]:     [Step 2/2] Process 'JetBrains.TeamCity.PlatformProcessRunner.v4.0.x86' [PID 7840] has finished profiling.
[00:44:31]:     [Step 2/2] ***************** End Program Output *****************
[00:44:33]:     [Step 2/2] Execution Time: 11.4600 s
[00:44:33]:     [Step 2/2] Symbol Coverage: 35.80%
[00:44:34]:     [Step 2/2] Branch Coverage: 16.29%
[00:44:34]:     [Step 2/2] Coverage File: E:\Works\TeamCityBuildAgent\temp\buildTmp\tmpEA37.tmp
[00:44:34]:     [Step 2/2] ##teamcity[importData type='dotNetCoverage' tool='ncover3' file='E:\Works\TeamCityBuildAgent\temp\buildTmp\tmpEA37.tmp']
[00:44:34]:     [Step 2/2] Importing data from 'E:\Works\TeamCityBuildAgent\temp\buildTmp\tmpEA37.tmp' with 'dotNetCoverage' processor
[00:44:34]:     [Step 2/2] Process exited with code 0

0
1 comment

This means that assembly '\src\csharp\Service.Data.NHibernate.Tests\obj\Debug\MvcStore.Service.Data.NHibernate.Tests.dll' was not tested because it failed to resolve all dependencies. Please note, this assembly was loaded from 'obj/Debug' folder where there could be not all required dependencies copied.

0

Please sign in to leave a comment.