开发者

Erlide: how to run all project eunit-tests at once?

开发者 https://www.devze.com 2023-01-23 18:14 出处:网络
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 a

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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消