From a932f220ca62d1f4f6a0d9bfb6ee206fdef7fe59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 30 Dec 2015 01:58:35 +0100 Subject: Update user guide --- guide/eunit.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'guide/eunit.html') diff --git a/guide/eunit.html b/guide/eunit.html index 686b23d..4af6bf8 100644 --- a/guide/eunit.html +++ b/guide/eunit.html @@ -69,7 +69,8 @@ the variable 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.

-- cgit v1.2.3