Monday, January 07, 2008

Setting the timeout value when doing unit testing

It is actually quite easy to set the timeout for Microsoft Unit Test. It is shown as the following which set the timeout to 10 minutes:

[TestMethod]
[Timeout(600000)]
public void QuickSearchRegressionTestWithThread() {… }

Actually it the following link provides the comparison of all the fixtures of all the popular unit test suites for the .NET framework.

No comments: