I just started to develop (from scratch) a new project in Erlang. I use Erlide, a plugin for Eclipse. I wrote some unit tests (using EUnit) but I find running each of them (one by one) by hand quite annoying. Is there any way to automate this process, so that - with just a开发者_C百科 couple of clicks - all of my tests are run?
Thanks in advance for your help.
To run all test in a directory you can use the primitive:
{dir, Path::string()}
This tests all object files in the specified directory, as if they had been individually specified using {file, FileName}.
You can also use the file
and application
primitive and others to define sets of tests.
You'll find documentation to all these under 1.5 EUnit test representation
精彩评论