NUnit-agent should be reused on reload
Bug #612052 reported by
Charlie Poole
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NUnit V2 |
Fix Released
|
High
|
Charlie Poole |
Bug Description
This issue came up in discussing bug #582051, but is a separate issue.
When tests have been loaded in a separate process under nunit-agent.exe, and the
user reloads the tests after a change, the process is terminated and a new process
created. If the user had attached to the process for debugging, he will have to
do so all over again with the new process.
It would be more convenient for the user if NUnit simply instructed the existing
process to reload the tests.
Related branches
Changed in nunitv2: | |
assignee: | nobody → Charlie Poole (charlie.poole) |
importance: | Undecided → Medium |
status: | New → Triaged |
tags: | added: agent |
Changed in nunitv2: | |
status: | Triaged → Fix Committed |
milestone: | none → 2.5.8 |
Changed in nunitv2: | |
status: | Fix Committed → Fix Released |
Changed in nunitv2: | |
milestone: | none → 2.5.9 |
Changed in nunitv2: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This fix was committed and released with NUnit 2.5.8, but is now being reactivated.
While ProcessRunner was fixed to reuse the same agent process on reload, it turns out that higher level code creates an
entirely new ProcessRunner in order when reloading an assembly. This is done because changed parameters may call for
use of a different type of runner - for example, if the test was loaded in a separate process but is now to be reloaded in-process.
The implication here is that all runners need to know whether they are reloading a test or loading it initially, which is a change in the TestRunner interface.