Structuring unit tests

Thomas Lindgren thomasl_erlang@REDACTED
Fri Apr 15 12:10:05 CEST 2005


--- Joel Reymont <joelr1@REDACTED> wrote:
> exporting all
> the tested functions or placing a
> -compile([export_all]) at the top of
> the module to be tested. 

You can also do that with a command line option:

% erlc +export_all mymod.erl

That means you can make it a flag in the makefile,
which often is useful.

> How do you prefer to structure your tests?

The test_server is probably state of the art. 

http://www.erlang.org/download/test_server/

Best,
Thomas



		
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/



More information about the erlang-questions mailing list