Is there a nice and simple way to get NUnit to kill a test that takes more than a specified amount of time?
Ideally it would not only kill the app domain in which the test was running, but also any child processes the test started.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are using NUnit 2.5 you can use the Timeout attribute to fail the test after specified amount of time. Unfortunately you will need to clean all the resources yourself – e.g. in the TearDown method check if the processes are running and kill them etc.