From c29515fcf341036c83edf29a8c1d4233c9261f11 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?=
-ifdef(TEST). perform a normal build after running tests, and vice versa.The
EUNIT_OPTS
variable allows you to specify additional EUnit options. Options are documented in the EUnit manual. -At the time of writing, the only available option isverbose
:EUNIT_OPTS = verboseTo run all tests (including EUnit):
$ make testsTo run all tests and static checks (including EUnit):
$ make checkYou can also run EUnit separately:
$ make eunitEUnit will be quiet by default, only outputting errors. +At the time of writing, the only available option is
verbose
:EUNIT_OPTS = verboseThe
EUNIT_ERL_OPTS
variable allows you to specify options +to be passed toerl
when running EUnit tests. For example, +you can load the vm.args and sys.config files:EUNIT_ERL_OPTS = -args_file rel/vm.args -config rel/sys.configTo run all tests (including EUnit):
$ make testsTo run all tests and static checks (including EUnit):
$ make checkYou can also run EUnit separately:
$ make eunitEUnit will be quiet by default, only outputting errors. You can easily make it verbose for a single invocation:
$ make eunit EUNIT_OPTS=verboseErlang.mk allows you to run all tests from a specific module, or a specific test case from that module, using the variable
t
.For example, to run all tests from the
cow_http_hd
-- cgit v1.2.3