Question

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 couple of clicks - all of my tests are run?

Thanks in advance for your help.

Was it helpful?

Solution

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 fileand application primitive and others to define sets of tests.

You'll find documentation to all these under 1.5 EUnit test representation

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top