Closed jaredpar closed 9 years ago
If it doesn't lock long term, why do we need the other process at all?
Couple of reasons:
AppDomains
don't protect the UI against stack overflow, AV, deadlock, native resource leaks, etc ...Note that my above about AppDomains
not locking long term is part speculation. I assume it will give us the intended behavior here but I don't actually know. Part of the reason I filed this issue is to investigate if this is viable or not.
The out of process support is functional now but the current design isn't going to work well for debugging unit tests. The current work flow is to create a new process per assembly per UI invocation of running tests. This makes attach pretty difficult from Visual Studio.
I think we need to move to a slightly different model for running tests. Essentially move the worker process into a more long term server role. Visual Studio can attach to this process and have a natural experience for debugging unit tests.
The xunit framework still uses
AppDomain
for isolating test runs so the process shouldn't lock the DLLs on disk once the run is completed.