ClassCleanup timeout? |
Frank Robij posted on Sunday, July 06, 2008 1:02 PM
|
I've created a method marked with [ClassCleanup] to clean up after Vs2008
(Pro) has run a set of unit tests. The method stops some services that have
been started in the [ClassInitialize] method. The method itself works fine -
I can call it from within a unit test and it will execute as expected.
However, if it takes too much time to execute the method, the ClassCleanup
method does not run completely. This is also true if I try to debug the
method - if the VS IDE pauses too long at a breakpoint, the unit test simply
ceases to run on the F10 instead of stepping to the next line of code.
Apparently the IDE (or whatever program is running the unit tests) waits
only a limited time for the cleanup code to finish. If that's the case, how
can I change its duration? If there is no such thing, how can I prevent the
ClassCleanup method from aborting prematurely?
Frank |
 |
|
|
|
ClassCleanup timeout? |
pinaus pinaus posted on Tuesday, January 27, 2009 10:59 AM
|
I have the same problem. Did you solve it?
Please, if you solved, can you help me?
Antonio. |
 |
|
|
|
|
Didn't Find The Answer You Were Looking For? |
| View Visual Studio .NET IDE Posts Ask A New Question |
|
| EggHeadCafe has experts online right now that may know the answer to your question. We pay them a bonus for answering as many questions as they can. So, why not help them and yourself by becoming a member (free) and ask them your question right now? |
| Ask Question In Live Forum |
|
| If you have an OpenID and do not want to become a member of the EggHeadCafe forum, you can also sign on to Chat Chaos and post your question to our real time Silverlight chat application. |
| Ask Question In Chat Chaos |
|
| Previous Visual Studio .NET IDE conversation. |