Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SetupFixture / TearDownFixture not call when TestRepeat attribute set with TestCase attribute présent #315

Open
emmanuelgonnot opened this issue Jun 20, 2022 · 1 comment

Comments

@emmanuelgonnot
Copy link

emmanuelgonnot commented Jun 20, 2022

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.

@emmanuelgonnot 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
@emmanuelgonnot
Copy link
Author

emmanuelgonnot commented 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant