nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #00924
Re: [Bug 582051] Re: 2.5.5 cannot find fixture for framework 4.0
Hi Chris,
Thanks - this is helpful. Any chance you could try it with 2.5.7 as
well?
Charlie
On Mon, Aug 2, 2010 at 3:35 PM, Chris Shaw <582051@xxxxxxxxxxxxxxxxxx> wrote:
> I have a few comments to add (apologies if I missed anyone else
> mentioning these above...)
>
> To quote Carlos S, "I am having the same problem with VS 2010, .NET 4.0,
> NUnit 2.5.5.10112 on a 64 bit system."
>
> My testing project worked fine under .NET 3.5, with NUnit 2.5, even on
> this 64-bit machine.
>
> After upgrading (.NET 4.0, NUnit 2.5.5), all seemed to be well at first,
> and then NUnit could not find any tests. The GUI seems permanently set
> for .NET 2.0, even when I try to change it. 'nunit-console.exe' works
> correctly for me when I use the /framework flag, though it did *not*
> work without the flag, even on a 32-bit machine.
>
> After reading through this bug (after trying various times to run my
> tests), I checked my Task Manager, and found two entries each of 'nunit-
> agent.exe' and nunit-agent-x86.exe' (I had closed NUnit itself earlier).
> Once I killed all four of those processes, the NUnit GUI found my tests
> again.
>
> I hope this is some help to you -- you've made a great tool that I
> depend on implicitly.
>
> Thanks,
> --Chris Shaw
>
> --
> 2.5.5 cannot find fixture for framework 4.0
> https://bugs.launchpad.net/bugs/582051
> You received this bug notification because you are a member of NUnit
> Developers, which is subscribed to NUnit V2.
>
--
2.5.5 cannot find fixture for framework 4.0
https://bugs.launchpad.net/bugs/582051
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
Status in NUnit V2 Test Framework: In Progress
Bug description:
Just downloaded v2.5.5.10112 of Nunit. In a new VS2010 project I am unable to get either the nunit.exe or nunit-console.exe programs to recognize my test cases. The programs run, and after a while tell me 'can't find test fixture' in the case of nunit-console, and a similar message with nunit. The test class has TestFixture applied, and is public, the method has TestCase applied (started as Test) and is also public. The project has references to the 2.5.5 versions of nunit.core.dll and nunit.framework.dll.
I changed the target runtime to 3.5, recompiled, and it has picked up on the test cases immediately (I'm still using the 2.5.5 dlls).
Possibly of interest, the gui really wants to use version 2 of the framework. I tried requesting version 4 from the menu but after a while, it fails to find the test and reverts back to version 2 of the framework.
I'm using VS2010 (evaluation edition at the moment), on 64 bit Vista.
I've tried to find a solution elsewhere, and full apologies in advance if it's a school-boy error on my part.
Thanks for your time on the project.
Follow ups
References