Question

I use nUnit framework to run tests and I was wondering if there was a way to run my tests more than once. One after the other. I have sporadical tests, and I would use this to monitor how many times they fail. For example I'd start that before I go to sleep and in the morning I could see the results. Any help is appreciated. Thank you.

Well, maybe I could write a script that executes the test repeatedly. The point is I would like to see the results of all execution.

Was it helpful?

Solution

We've hacked it like this before:

[Test]
public void MyTest([Range(0, 10)] int iteration)
{
...
}

NUnit Range Attribute

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top