Reading List

How to Automate Memory Leak Detection With XCTest from Michael Tsai RSS feed.

How to Automate Memory Leak Detection With XCTest

Dan Torres: Inside the addTearDownBlock, we can assert if sut and spy are deallocated by asserting if they’re nil. We hold sut and spy with weak references so that they won’t be strongly retained when executing the block. […]But adding this block to all your tests may reduce readability. So we can add an extension […]