[erlang-questions] Using EUnit from the shell

Ben Butler-Cole ben@REDACTED
Wed Nov 1 12:58:55 CET 2006

I'm just starting to use EUnit. I'd like to integrate it with an automated build script (I'm using Rake).

So I need to find a way of running EUnit tests from the shell and having them return an error if the tests fail.

Has anyone come up with a way of doing this?

The best I've managed is

    erl -noshell -run my_test test -run erlang halt

This prints out error messages if tests fail, but doesn't tell the shell that there has been a problem.

Any suggestions greatly appreciated.


More information about the erlang-questions mailing list