From 7addbf132ec0fc4bb579b2682e06863f96713610 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sat, 9 Jan 2016 16:18:28 +0100 Subject: Update user guide --- guide/ct.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'guide/ct.html') diff --git a/guide/ct.html b/guide/ct.html index b1672f8..2a0a592 100644 --- a/guide/ct.html +++ b/guide/ct.html @@ -33,7 +33,7 @@ div.navfooter{margin-bottom:1em}
-

Chapter 16. Common Test

Common Test is Erlang’s functional testing framework. +

Chapter 16. Common Test

Common Test is Erlang’s functional testing framework. Erlang.mk automates the discovery and running of Common Test suites.

16.1. Writing tests

The Common Test user guide is the best place to learn how to write tests. Erlang.mk @@ -55,9 +55,9 @@ using the variable t. Note that this only applies t suite-specific targets, like the ct-http example above.

To run all tests from the http_compress group in the http_SUITE test suite, write:

$ make ct-http t=http_compress

Similarly, to run a specific test case in that group:

$ make ct-http t=http_compress:headers_dupe

To do the same against a multi-application repository, you can use the -C option:

$ make -C apps/my_app ct-http t=my_group:my_case

Note that this also applies to dependencies. When using Cowboy -as a dependency, you can run the following directly:

$ make -C deps/cowboy ct-http t=http_compress

Finally, code coverage -Chapter 18, Code coverage is available, -but covered in its own chapter.

+as a dependency, you can run the following directly:

$ make -C deps/cowboy ct-http t=http_compress

Finally, code coverage +Chapter 17, Code coverage is available, +but covered in its own chapter.

-- cgit v1.2.3