I have a metric ton of Unit Tests using Google Test.
Currently using XCode, I have noticed some other testing frameworks that detect memory leaks at the end of each unit test, and I assume there is a prescribed way to do the same thing with Google Test. I hope this isn't a feature of Boost Test and a few others only.
If anyone could point me in the right direction, I would appreciate it. Rather avoid switching test frameworks.
Right now, I'm thinking valgrind might be worth looking into, I'm just unsure how I'll hook into each test. My guess is I won't be able to do this from xcode directly.
As far as I know, unit tests for memory leaks are not explicitly supported in Google Test. Nevertheless, you have this extension that fills that part for you
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With