← Back to team overview

nunit-core team mailing list archive

[Bug 582051] Re: 2.5.5 cannot find fixture for framework 4.0

 

I am experiencing this issue with NUnit v2.5.9.10348.

Windows Server 2008 R2 Enterprise (64-bit)

C:\nunit\net-2.0\nunit-console-x86.exe c:\unittests\MyTest\MyTest.nunit /config=my-config-test /framework=4.0 /run=MyTest.Tests.Test /noshadow /xml:c:\unittests\MyTest.xml
NUnit version 2.5.9.10348
Copyright (C) 2002-2009 Charlie Poole.
Copyright (C) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov.
Copyright (C) 2000-2002 Philip Craig.
All Rights Reserved.

Runtime Environment -
   OS Version: Microsoft Windows NT 6.1.7600.0
  CLR Version: 2.0.50727.4927 ( Net 2.0 )

ProcessModel: Default    DomainUsage: Default
Execution Runtime: v4.0
Unable to locate fixture


However, if I immediately run it again, it works as expected.

I have this consistently reproducible from a vmware snapshot.

The vmware snapshot has the following components installed\settings configured in order:
.net 3.5.1
sql server 2008 r2 express with management studio
.net 4.0 full
logged in as a domain user
iis
disabled uac
enabled interactive service detection service

But I'm not sure if all of them are relevant.

Is there anything else I can do to produce a more verbose output\log for
diagnostics?

Should I create a new bug or should this one be re-opened?

Thank you.

-- 
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/582051

Title:
  2.5.5 cannot find fixture for framework 4.0

Status in NUnit V2 Test Framework:
  Fix Released

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 manage notifications about this bug go to:
https://bugs.launchpad.net/nunitv2/+bug/582051/+subscriptions


References