From a932f220ca62d1f4f6a0d9bfb6ee206fdef7fe59 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= t
.
For example, to run all tests module (instead of all tests from the entire project), one could write:
$ make eunit t=cow_http_hd
Similarly, to run a specific test case:
$ make eunit t=cow_http_hd:parse_accept_test_
To do the same against a multi-application repository,
you can use the -C
option:
$ make -C apps/my_app eunit t=my_module:hello_test
Note that this also applies to dependencies. From Cowboy, -you can run the following directly:
$ make -C deps/cowlib eunit t=cow_http_hd
Finally, code coverage is available, +you can run the following directly:
$ make -C deps/cowlib eunit t=cow_http_hd
Finally, code coverage +Chapter 18, Code coverage is available, but covered in its own chapter.