Pilchie / xunit.runner.wpf

XUnit Gui written in WPF
Apache License 2.0
44 stars 41 forks source link

Debugging Workflow #20

Closed jaredpar closed 9 years ago

jaredpar commented 9 years ago

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.

Pilchie commented 9 years ago

If it doesn't lock long term, why do we need the other process at all?

jaredpar commented 9 years ago

Couple of reasons:

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.