Structuring unit tests

Vladimir Sekissov svg@REDACTED
Fri Apr 15 12:06:00 CEST 2005


joelr1> I currently have my unit tests at the end of each module. The only way of
joelr1> moving the tests to a different module that I found is by exporting all
joelr1> the tested functions or placing a -compile([export_all]) at the top of
joelr1> the module to be tested. 
joelr1> 
joelr1> How do you prefer to structure your tests?

Look at OTP test server

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

It is a standard and comfortable way to test your code.

Best Regards,
Vladimir Sekissov



More information about the erlang-questions mailing list