I am using NUnit (2.4.6) and my build/test night are done with Team City 4. I have contacted team city and they already told me that they cannot handle this. So, here I am.
What I want is to set up my test to do their testing as usual but in the case they hang up… for an unknown reason (this might happen…)… I do not want them to continue but to fail. This is require because sometime I have notice my build night was done and when testing arrive some test hang up for the whole night.
How would you do it?
Have in mind that I know that Nunit 2.5 (Beta) have the MaxTime attribute but I would have to upgrade + do it over 800 units tests… I would like something for the whole tests without having to upgrade to this beta version yet.
TC has an execution timeout for each build configuration, which fails the build if exceeded. It’s in general settings ‘fail build if it runs longer than’. It’s not per unit test, but I think it’s good enough for your scenario.