Legacy Documentation. View NUnit 3 Documentation

RepeatAttribute (NUnit 2.5)

RepeatAttribute is used on a test method to specify that it should be executed multiple times. If any repetition fails, the remaining ones are not run and a failure is reported.

Notes:

  1. It is not currently possible to use RepeatAttribute on a TestFixture or any other type of test suite. Only single tests may be repeated.
  2. Since a parameterized test method represents a suite, RepeatAttribute is ignored when it appears on such a method.