You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue reflects issue nunit/nunit-console#1313. We anticipate that the same problem exists in the TestCentric engine since it contains similar code to the NUnit engine and runs .NET Core tests in the agent's primary AppDomain.
As I commented on the nunit issue, "NUnit traditionally ran tests in a separate AppDomain, which it created. The .NET Framework agents still do that. You can find the key code in the DomainManager class. That class is only built for .NET Framework. The .NET Core agents all run tests in the primary AppDomain."
The TestCentric agent is currently set up the same way, so I believe the same issue applies. However, it will require confirmation before proceeding.
The text was updated successfully, but these errors were encountered:
I've done a bit of reading and I'm now doubtful that behavior I confirmed is actually a bug, so I'm flagging this as needing discussion before any more is done. My reasoning is as follows..
AppDomains are somewhat minimally supported in .NET Core. In particular, they cannot be created.
As a result, all code runs in the primary AppDomain of the process hosting it.
Consequently, no test assembly being executed by a test runner should expect the ApplicationBase to be anything other than the primary AppDomain.
In addition, any assembly referenced by the test assembly will also be a .NET Core or Standard assembly, so the same limitations apply to it.
That said, there could be use cases I don't know about that violate these assumptions. If so, I'd like to hear about them.
This issue reflects issue nunit/nunit-console#1313. We anticipate that the same problem exists in the TestCentric engine since it contains similar code to the NUnit engine and runs .NET Core tests in the agent's primary AppDomain.
As I commented on the nunit issue, "NUnit traditionally ran tests in a separate AppDomain, which it created. The .NET Framework agents still do that. You can find the key code in the DomainManager class. That class is only built for .NET Framework. The .NET Core agents all run tests in the primary AppDomain."
The TestCentric agent is currently set up the same way, so I believe the same issue applies. However, it will require confirmation before proceeding.
The text was updated successfully, but these errors were encountered: