[erlang-questions] Unit testing code - whence?

Alex Arnon alex.arnon@REDACTED
Tue Jul 5 23:27:17 CEST 2011

Hi List,

What are the conventions regarding placement of unit test code and
I tend to generate a lot of unit tests - 2x..4x SLOC of the tested module's
code is not uncommon.
Should the unit test functions be placed in their own module?
If so - what is the naming convention for the new modue: 'test_mymod' /
'mymod_test' or something else?
What is the preferred way, if there are many small UT functions: function
*_test() per UT, or separate into test sets by group, e.g.:
api_unit_test_(), internal_unit_test_().

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110706/5cf6de74/attachment.htm>

More information about the erlang-questions mailing list