← Back to team overview

nunit-core team mailing list archive

[Bug 939596] Re: Exceptions while starting NUnit Gui

 

This could not possibly refer to the nunit-3.0 project, since that
project doesn't have a gui yet. I changed it to nunitv2.

NUnit 2.x injects it's core assembly into the test AppDomain by
intercepting the error thrown when a file cannot be loaded. It's not
clear, based on your information, if that's what you are seeing. Can you
post an example stack trace?

It's possible that this is a native exception but it can't be a C++
exception, since NUnit doesn't include any C++.

Depending on exactly where this exception is thrown, it may be possible
to remove it as a bug fix in the next NUnit 2.6 release or it may prove
to be unresolvable.

NUnit 3.0 does not rely on intercepting load errors to inject itself
into the test domain, so the problem should disappear then.

FYI, although not related to this problem, you will see exceptions thrown whenever any of the standard NUnit exceptions are thrown: AssertionException, SuccessException, IgnoreException, InconclusiveException. You should suppress display of those
exceptions in the managed debugger.

Charlie

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

Title:
  Exceptions while starting NUnit Gui

Status in NUnit V2 Test Framework:
  New

Bug description:
  We have NUnit-Test which tests functions which call functions in
  native Dlls (via PInvoke). So we have always native and mamanged
  Debugger attached. When starting Gui parameterized with the test-
  assembly, the Debugger reports multiple Exceptions
  (EEFileLoadException, I think they are native C++) while the Gui tries
  to load the tests  (before anyone has done anything in the gui).

  It would be nice if it could be changed that no exception is thrown.
  The debugger always stops (if exceptions catching is put on, which
  must be to find errors in own code).

To manage notifications about this bug go to:
https://bugs.launchpad.net/nunitv2/+bug/939596/+subscriptions


References