NUnit does not show custom exceptions when running tests in a separate AppDomain
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NUnit Framework |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
[Issue now tracked at https:/
If a test throws one of our custom exception types (e.g., InterfaceBroker
An unhandled System.
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?
summary: |
- NUnit GUI does not show custom exceptions when running tests in a - separate AppDomain + NUnit does not show custom exceptions when running tests in a separate + AppDomain |
description: | updated |
tags: | added: github |
I forgot to mention the working environment: we're running Windows Vista 64 Business and we use nunit-x86.exe. Code is written in C# 3.0 with Visual Studio 2008.