nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #02478
[Bug 917590] Re: Combination of Repeat attribute and TestCase attribute not working.
Repeat currently only works on individual tests, not on suites. The
[Repeat(10)] attribute in your example applies to the test method, not
the individual test case. The method represents a suite and so it is
ignored. There is currently no way to apply a Repeat count to a test
case. That would require adding a named property to TestCaseAttribute.
Admittedly, this case is quite confusing. We'll improve the
documentation for 2.6 - it's currently only one line for Repeat - and
plan on implementing a more general Repeat capability in 3.0.
** Project changed: nunitv2 => nunit-3.0
--
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/917590
Title:
Combination of Repeat attribute and TestCase attribute not working.
Status in NUnit Test Framework:
New
Bug description:
Today I got some intermittent failures in my regression tests, so for
reproducing the bug I added a Repeat attribute with Testcase
attribute. Like this
[Repeat(10)]
[TestCase(Mode.WCF, Execution.Remote, Description = "OutProc Test")]
//Both Mode and Execution is enums
But the Test executed only once.
I am not sure it is reported before, but I couldn't find it in the
buglist.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nunit-3.0/+bug/917590/+subscriptions
References