TEST
macro. Make sure to only include
it inside an ifdef
block, otherwise tests will always be
compiled.From d2a3f2cedd7c00d0933222aed9c06b3149aa4db4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= TEST
macro. It is only defined
when running tests:
TEST
macro. Make sure to only include
it inside an ifdef
block, otherwise tests will always be
compiled.verbose
:erl
when running EUnit tests. For example,
you can load the vm.args and sys.config files:To run all tests (including EUnit):
$ make tests
To run all tests and static checks (including EUnit):
$ make check
You can also run EUnit separately:
EUnit will be quiet by default, only outputting errors. You can easily make it verbose for a single invocation:
t
.$ make eunit t=cow_http_hd
Similarly, to run a specific test case:
To do the same against a multi-application repository,
you can use the -C
option:
Note that this also applies to dependencies. From Cowboy, you can run the following directly: