Unity Issue Tracker - UnitySetUp is re-run if Domain Reload or enter PlayMode is triggered in more than one consecutive test
Fixed
DSTR-763
UnitySetUp is re-run if Domain Reload or enter PlayMode is triggered in more than one consecutive test
Package: Test-Framework
Fixed
1.4.X
1.4.5
Won't Fix
1.3.X
1.1.X
This issue will only be fixed in the 1.4.x version of UTF.
This issue will only be fixed in the 1.4.x version of UTF.
Reproduction steps:
1. Open the attached project “UnitySetUpIssueTestProject”
2. Open the Test Runner window
3. Select the first two or the last two tests
4. Right-click and select “Run Selected”
5. Observe the logs of the second selected test
Expected result: “UnitySetUp” is logged once
Actual result: “UnitySetUp” is logged twice
Reproducible with: 1.1.33 (2020.3.45f1, 2021.3.18f1, 2022.2.6f1), 1.3.2 (2023.1.0b3, 2023.2.0a1)
Could not test with: 2.0.1-pre.12 (2023.2.0a1) (error CS0619)
Reproducible on: macOS 12.4 (Intel)
Prioritise and Follow this issue
Have a workaround or additional info about this issue?