Re: What I hate about *Unit frameworks.
Keith Ray <[email protected]>
| Newsgroups | gmane.comp.programming.test-driven-development |
|---|---|
| Message-ID | <[email protected]> |
> 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]
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/testdrivendevelopment/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/testdrivendevelopment/join
(Yahoo! ID required)
<*> To change settings via email:
[email protected]
[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/