Comment 25 for bug 582051

Revision history for this message
Charlie Poole (charlie.poole) wrote : Re: [Bug 582051] Re: 2.5.5 cannot find fixture for framework 4.0

Hi Chris,

Are these your tests or the NUnit tests? I ask because the NUnit tests do
run extra copies of nunit-agent.

When running your own tests, there should be a copy of nunit-agent which
is created each time you load or reload the tests. It doesn't go away at
the end of the run, howver.

To debug in this situation, you have to attach to nunit-agent, which is a
limitation of our use of a separate process.

From what you are saying, I'm seeing this bug pretty well fixed, but
I'll wait to see if there are comments from anybody else.

Charlie

On Mon, Aug 2, 2010 at 4:41 PM, Chris Shaw <email address hidden> wrote:
> Hi Charlie,
>
> OK, after installing 2.5.7, I notice:
>
> NUnit hasn't (in about 1/2 a dozen tries) been unable to find my tests
> -- they all seemed to run correctly.
>
> After the first run, however, 'nunit-agent-x86.exe' was left in my
> Process list.  After that, each subsequent run seemed to start (and
> later kill) a new instance, while leaving the first instance running.
>
> Once, I tried Stopping the tests (from the GUI) before they completed.
> That time, another instance of 'nunit-agent-86.exe' was left behind.
> The next run still seemed to run OK, however (starting and then killing
> a new (third) process).
>
> Now, I have no NUnit running, but two 'nunit-agent-86.exe' processes
> still running, according to the Task Manager.
>
> I've never seen an instance of 'nunit-agent.exe' while doing any of
> this.
>
> Hope this helps,
> --Chris
>
> (BTW, I used to be able to put breakpoints into my tests (and into my
> code base) that would get hit when NUnit ran the tests.  Now, they don't
> get hit, and VS says that 'No symbols have been loaded..' when NUnit is
> running.  Is that an intended change?  --cs)
>
>
> -----Original Message-----
> From: <email address hidden> [mailto:<email address hidden>] On Behalf Of Charlie Poole
> Sent: Monday, August 02, 2010 4:56 PM
> To: Shaw, Christopher
> Subject: 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 <email address hidden> 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 direct subscriber
> of the bug.
>
> 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.
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/nunitv2/+bug/582051/+subscribe
>
> --
> 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.
>