You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SetupFixture and TearDownFixture methods are ignore whereas Setup and TearDown method is correctly executed on setting the TestRepeat attribute on test with TestCase attribute already present
In the DUnitX tests with this attribute, the asserts regarding the repeat count are implement in the TearDownFixture method that is no more call. Finaly the tests are marked as successfull whitout any check of the _TimesRun, _TimesRunAnyWay and _TimesRunTestCase fields values.
The text was updated successfully, but these errors were encountered:
emmanuelgonnot
changed the title
SetupFixture / TearDownFixture not call when TestRepeat attribute set
SetupFixture / TearDownFixture not call when TestRepeat attribute set with TestCase attribute présent
Jun 20, 2022
I found the origine of the issue. In the fixture, if you have only repeated tests active, the parent fixture own no test. All test has been own by the childrens sub fixtures. On parent fixture execution, no active test is present, and the SetupFixture and TearDownFixture methods hasn't been run.
SetupFixture and TearDownFixture methods are ignore whereas Setup and TearDown method is correctly executed on setting the TestRepeat attribute on test with TestCase attribute already present
In the DUnitX tests with this attribute, the asserts regarding the repeat count are implement in the TearDownFixture method that is no more call. Finaly the tests are marked as successfull whitout any check of the _TimesRun, _TimesRunAnyWay and _TimesRunTestCase fields values.
The text was updated successfully, but these errors were encountered: