1eunit(3)                   Erlang Module Definition                   eunit(3)
2
3
4

NAME

6       eunit - This module is the main EUnit user interface.
7

DESCRIPTION

9       This module is the main EUnit user interface.
10

EXPORTS

12       start() -> term()
13
14              Starts  the  EUnit server. Normally, you don't need to call this
15              function; it is started automatically.
16
17       stop() -> term()
18
19              Stops the EUnit server. Normally, you don't need  to  call  this
20              function.
21
22       test(Tests) -> term()
23
24              Equivalent to test(Tests, []).
25
26       test(Tests::term(), Options::[term()]) -> ok | {error, term()}
27
28              Runs  a  set  of  tests. The format of Tests is described in the
29              section EUnit test representation of the overview.
30
31              Example:
32
33                eunit:test(fred)
34
35              runs all tests in the module fred and also any tests in the mod‐
36              ule fred_tests, if that module exists.
37
38              Options:
39
40                verbose:
41                  Displays more details about the running tests.
42
43                print_depth:
44                  Maximum depth to which terms are printed in case of error.
45
46              Options in the environment variable EUNIT are also included last
47              in the option list, i.e., have lower precedence  than  those  in
48              Options.
49
50              See also: test/1.
51

AUTHORS

53       Mickaël Rémond <mickael.remond@process-one.net>
54
55       Richard Carlsson <carlsson.richard@gmail.com>
56
57
58
59                                   eunit 2.7                          eunit(3)
Impressum