Debug unit test Build 220

I'm using VS2003.
With this build (220) I can debug my unit tests but I've noticed this problem:
sometimes when I use the unit tests debugger the debug doesn't start, I can see the build goes successfully but the the "unit test runner" window doesn't hide showing me all the button in the toolbar disabled and the class icon in the hierarchy is set with the running gif.
The VS.NET tell me that no code was executing (the "Start" button is enabled)
Additionally in this state I can relaunch the unit test or the debug but with the same result as above.
Closing and restarting the ide fix the bug.
This was happened 3 times but I can reproduce it systematically.


Bye,
Antonio

4 comments
Comment actions Permalink

Ok, I found the way to reproduce it.

set a breakpoint
start the unit test debug
when the execution break at the break point stop the debug.
At this point the "unit test runner" windows reappairs with the "stop" button enabled.
If you try to rerun the test, in normal or debug mode, the "unit test runner" window disable the stop button too, and, in this way we reach the dead point.

Hope this help.

Antonio.

0
Comment actions Permalink

Hello Antonio,

please elaborate on how did you stop tests - by ReSharper Unit Test Runner's
toolbar button or VS' command 'Stop debugging'?


Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Ok, I found the way to reproduce it.

set a breakpoint

start the unit test debug

when the execution break at the break point stop the debug.

At this point the "unit test runner" windows reappairs with the "stop"
button enabled.

If you try to rerun the test, in normal or debug mode, the "unit test
runner" window disable the stop button too, and, in this way we reach
the dead point.

Hope this help.

Antonio.



0
Comment actions Permalink

I stop test with the VS' command 'Stop debugging' 'cause the RS 'Unit Test Runner' window is not visible while you debug the code so the only way to stop the execution is with the VS command.

Kind regards,
Antonio

0
Comment actions Permalink

I can add that after stopping the debug from the VS and trying to use the Stop button of the RS Unit Tests Runner the result doesn't change.
Any other action to re execute the test is disabled.

Antonio.

0

Please sign in to leave a comment.