From: Alon A. <alo...@gm...> - 2006-11-13 19:56:16
|
I've been trying to use JetBrains Resharper Unit Runner tool to run the CruiseControl.Net unit tests and I get a reflection error. according to the folks at JetBrains, this is due to a problem with NetReflector trying to load an assembly which is not required by the Test Runner runtime and therefore is not distributed. It's a shame because Unit Test Runner is a very nice addition to Visual Studio as it provides tight integration when running unit tests. ---------- Forwarded message ---------- From: Support - Andrey Serebryansky <su...@je...> Date: Nov 13, 2006 9:08 AM Subject: RE: [RS-Problem] Error Running Unit Test To: Alon Albert <alo...@gm...> Cc: su...@je... Hello Alon It's a known problem that Unit Test Runner references the 'TestFramework' assembly which is not included in ReSharper distribution and isn't actually required for Unit Test Runner to perform it's tasks. There are some faulty frameworks which try loading all required assemblies with their references in an app domain and don't handle exceptions properly and it's seems that NetReflector is one of those. We suggest you to contact CruiseControl.NET/NetReflector developers regarding this issue and we will try to contact them too. Andrey Serebryansky Support Engineer JetBrains, Inc http://www.jetbrains.com "Develop with pleasure!" ________________________________ From: Alon Albert [mailto:alo...@gm...] Sent: Monday, November 13, 2006 6:15 PM To: Support - Andrey Serebryansky Subject: Re: [RS-Problem] Error Running Unit Test Yes, the project I am using Rehsarper with is called CruiseControl.Net and it uses NetRelector. Is this a known issue? On 11/13/06, Support - Andrey Serebryansky <su...@je...> wrote: Hello Alon Thank you for reporting! Do you use 'NetReflector' software? It seems that it tries to load Unit Test Runner's assemblies into an app domain and doesn't handle assembly load exceptions properly. Andrey Serebryansky Support Engineer JetBrains, Inc http://www.jetbrains.com "Develop with pleasure!" -----Original Message----- From: Alon Albert [mailto: alo...@gm... <mailto:alo...@gm...> ] Sent: Monday, November 13, 2006 10:32 AM To: su...@je... Subject: [RS-Problem] Error Running Unit Test I am running a Unit Test and I get the following error. Something about a missing Assembly. I am using build 266 on VS2003. Unable to load types from assembly JetBrains.ReSharper.UnitTestSupport.NUnit, Version=2.0.266.2, Culture=neutral, PublicKeyToken=null: Failed to load 1 of the 7 types defined in the assembly. Exceptions: Exception: System.IO.FileNotFoundException: File or assembly name JetBrains.ReSharper.TestFramework, or one of its dependencies, was not found. File name: "JetBrains.ReSharper.TestFramework " === Pre-bind state information === LOG: DisplayName = JetBrains.ReSharper.TestFramework, Version=2.0.266.2, Culture=neutral, PublicKeyToken=null (Fully-specified) LOG: Appbase = Q:\ccnet\1.1.1\project\UnitTests\bin\Debug LOG: Initial PrivatePath = Calling assembly : JetBrains.ReSharper.UnitTestSupport.NUnit, Version=2.0.266.2, Culture=neutral, PublicKeyToken=null. === LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). LOG: Post-policy reference: JetBrains.ReSharper.TestFramework, Version=2.0.266.2, Culture=neutral, PublicKeyToken=null LOG: Attempting download of new URL file:///Q:/ccnet/1.1.1/project/UnitTests/bin/Debug/JetBrains.ReSharper.TestF ramework.DLL. LOG: Attempting download of new URL file:///Q:/ccnet/1.1.1/project/UnitTests/bin/Debug/JetBrains.ReSharper.TestF ramework/JetBrains.ReSharper.TestFramework.DLL. LOG: Attempting download of new URL file:///Q:/ccnet/1.1.1/project/UnitTests/bin/Debug/JetBrains.ReSharper.TestF ramework.EXE. LOG: Attempting download of new URL file:///Q:/ccnet/1.1.1/project/UnitTests/bin/Debug/JetBrains.ReSharper.TestF ramework/JetBrains.ReSharper.TestFramework.EXE. LOG: Attempting download of new URL file:///c:/program files/microsoft visual studio .net 2003/common7/ide/privateassemblies/JetBrains.ReSharper.TestFramework.DLL. LOG: Attempting download of new URL file:///c:/program files/microsoft visual studio .net 2003/common7/ide/privateassemblies/JetBrains.ReSharper.TestFramework/JetBrai ns.ReSharper.TestFramework.DLL. LOG: Attempting download of new URL file:///c:/program <file:///c:/program> files/microsoft visual studio .net 2003/common7/ide/privateassemblies/JetBrains.ReSharper.TestFramework.EXE. LOG: Attempting download of new URL file:///c:/program files/microsoft visual studio .net 2003/common7/ide/privateassemblies/JetBrains.ReSharper.TestFramework/JetBrai ns.ReSharper.TestFramework.EXE. at Exortech.NetReflector.NetReflectorTypeTable.GetTypes(Assembly assembly) at Exortech.NetReflector.NetReflectorTypeTable.Add(Assembly assembly) at Exortech.NetReflector.NetReflectorTypeTable.Add(AppDomain appDomain) at Exortech.NetReflector.NetReflector.Read(XmlNode node) at ThoughtWorks.CruiseControl.UnitTests.Core.Publishers.EmailPublisherMother.Cr eate(XmlNode node) in EmailPublisherMother.cs:line 38 at ThoughtWorks.CruiseControl.UnitTests.Core.Publishers.EmailPublisherMother.Cr eate() in EmailPublisherMother.cs:line 33 at ThoughtWorks.CruiseControl.UnitTests.Core.Publishers.EmailPublisherTest.SetU p() in emailpublishertest.cs:line 22 -- OS: Windows XP Resharper: 2.0 Visual Studio .NET: Build: 266 -- Alon Albert !DSPAM:5,45588be2231476357115725! -- Alon Albert |