Erlang -- eunit

User's Guide
Reference Manual
Release Notes
PDF
Top

EUnit
Reference Manual
Version 2.2.3

Expand All
Contract All

Table of Contents

- eunit
  - Top of manual page
  - start/0
  - stop/0
  - test/1
  - test/2
- eunit_surefire
  - Top of manual page
  - handle_begin/3
  - handle_cancel/3
  - handle_end/3
  - init/1
  - start/0
  - start/1
  - terminate/2

# eunit

### MODULE

eunit

### MODULE SUMMARY

This module is the main EUnit user interface.

### DESCRIPTION

This module is the main EUnit user interface.

### EXPORTS

start() -> term()

Starts the EUnit server. Normally, you don't need to call this function; it is started automatically.

stop() -> term()

Stops the EUnit server. Normally, you don't need to call this function.

test(Tests) -> term()

Equivalent to test(Tests, []).

test(Tests::term(), Options::[term()]) -> ok | {error, term()}

Runs a set of tests. The format of Tests is described in the section EUnit test representation of the overview.

Example:

      eunit:test(fred)

runs all tests in the module fred and also any tests in the module fred_tests, if that module exists.

Options:

verbose

  Displays more details about the running tests.

Options in the environment variable EUNIT are also included last in the option list, i.e., have lower precedence than those in Options.

See also: test/1.

Mickaël Rémond mickael.remond@process-one.net Richard Carlsson carlsson.richard@gmail.com