- Status: accepted
- Deciders: iOS Team
- Date: 2023-27-02
There were discussions on code reviews about the position of super.tearDown()
, Apple's doc reviewed and a decision made since we may want to run the unit tests in parallel in near feature.
Call super.tearDown()
at the end of the tearDown
method:
override func tearDown() {
mockDefaultsInstance.assertions(name: "mockDefaultsInstance")
mockDefaultsInstance = nil
defaults = nil
super.tearDown()
}