Gui enables run when the assembly specified on the command line is not found
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NUnit V2 |
Fix Released
|
High
|
Charlie Poole |
Bug Description
Belongs to: NUnit 2.5.10
If you start nunit for example like this:
nunit.exe /run x:\doesnt_exists
and then click the "Run" button (which is enabled after the error message that states that the file could not be loaded), an exception is thrown:
System.
bei NUnit.Util.
It seems that the error is in file TestLoader.cs in line 618: Perhaps Services or Services.
Full strack trace:
System.
bei NUnit.Util.
bei NUnit.UiKit.
bei NUnit.UiKit.
bei NUnit.UiKit.
bei NUnit.Gui.
bei System.
bei System.
bei System.
bei System.
bei System.
bei System.
bei System.
bei System.
bei System.
bei System.
Related branches
Changed in nunitv2: | |
status: | Triaged → Fix Committed |
Changed in nunitv2: | |
status: | Fix Committed → Fix Released |
Strangely, I get the error but with a different stacktrace. In addition, the menu items Run All and Run Selected are also enabled and (naturally) cause a failure as well. This occurs with or without the user of the /run option. I'm changing the description, since the main problem is that these UI elements should not be enabled at all.