Seamless leak detection for unit tests.
Laziness. Excersizing for memory leaks is boring. There're some naive ways to exercise any black box for memory leaks. Unit tests are already there.
If we can treat a test case as a black box, we can apply the naive ways to exercise it for memory leaks. Automate it.
- Only NSObject subclasses are checked.
- Support pure Swift classes
Add pod to test target (Podfile) or to test_spec subspec (podspec). Run the tests. Get leaks reported.