¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: [TDD] What I hate about *Unit frameworks.


Keith Ray
 

Well, you can run your tests under something like valgrind and it will tell
you.

Now which test leaked?
Pretty easy to find out. Valgrind gives us the call-stack of the allocation that leaked, and most code is only executed by a few tests. (Google "microtest" to see why (and "Mike Wrote Tests").)

Some people make the test-runners keep track of memory usage, and it complains about specific tests.

Use code-review and/or pair programming, and sensible coding standards, to make sure other kinds of resources are not leaked.

C. Keith Ray


MARKETPLACE



Switch to: Text-Only, Daily Digest ? Unsubscribe ? Terms of

[Non-text portions of this message have been removed]

Join [email protected] to automatically receive all group messages.