nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #01059
[Bug 494119] [NEW] NUnit GUI does not show custom exceptions when running tests in a separate AppDomain
You have been subscribed to a public bug:
If a test throws one of our custom exception types (e.g.,
InterfaceBrokerException) and you're running tests via the NUnit GUI,
then NUnit shows the following instead of the exception that was
actually thrown:
An unhandled System.Runtime.Serialization.SerializationException was
thrown while executing this test : Unable to find assembly
'Profitstar.Library, Version=2008.2.338.27793, Culture=neutral,
PublicKeyToken=null'.
This is because the tests get run in one AppDomain, and then the results
are marshaled to the main AppDomain via .NET serialization; but the
Profitstar.Library assembly isn't loaded into the main AppDomain (nor
should it be, because then it couldn't be unloaded), so it can't
deserialize the exception.
So we end up with no stack trace, no original exception message, and no
idea of even what exception type got thrown.
Is there any way to circumvent the use of a separate AppDomain when
using the NUnit GUI? If not, can something be added to configure that
feature?
** Affects: nunit-3.0
Importance: Wishlist
Status: Triaged
** Tags: feature major
--
NUnit GUI does not show custom exceptions when running tests in a separate AppDomain
https://bugs.launchpad.net/bugs/494119
You received this bug notification because you are a member of NUnit Core Developers, which is the registrant for NUnit Framework.