Allows building tests using the MoonUnit test framework.
To check for the availability of MoonUnit, use mk_check_moonunit
.
To build a test library, use mk_moonunit
.
When this module is included in a project, a test
target is generated which
runs all MoonUnit test libraries within the project. Other targets which run particular
test libraries can be manually defined with mk_moonunit_test
.
All targets which run tests accept the following parameters to make
:
TEST=
pattern
Passes pattern
as the -t
option of MoonUnit,
selecting a subset of tests to run.
DEBUG=
pattern
Similar to TEST=
, but also runs the unit tests in debug mode
within a debugger.
DEBUGGER=
command
Use command
as the debugger in which MoonUnit is run when
using the DEBUG=
option. Defaults to gdb --args
.
LOGLEVEL=
level
Use level
as the log level when running tests.
XML=
file
Outputs XML test results to file
in addition to
the human-readable output written to the console.
HTML=
dir
Outputs XHTML test results to dir
in addition to
the human-readable output written to the console.
TITLE=
title
, RUN=
run
Sets the title and test run identifiers which appear in XML and HTML output.