Module rebar_eunit
rebar_eunit supports the following commands:
- eunit - runs eunit tests
- clean - remove ?EUNIT_DIR directory
- reset_after_eunit::boolean() - default = true.
If true, try to "reset" VM state to approximate state prior to
running the EUnit tests:
- Stop net_kernel if it was started
- Stop OTP applications not running before EUnit tests were run
- Kill processes not running before EUnit tests were run
- Reset OTP application environment variables
The following Global options are supported:
- verbose=1 - show extra output from the eunit test
-
suites="foo,bar" - runs tests in foo.erl, test/foo_tests.erl and
tests in bar.erl, test/bar_tests.erl
-
suites="foo,bar" tests="baz"- runs first test with name starting
with 'baz' in foo.erl, test/foo_tests.erl and tests in bar.erl,
test/bar_tests.erl
-
tests="baz"- For every existing suite, run the first test whose
name starts with baz and, if no such test exists, run the test
whose name starts with baz in the suite's _tests module
Additionally, for projects that have separate folders for the core
implementation, and for the unit tests, then the following
rebar.config option can be provided:
{eunit_compile_opts, [{src_dirs, ["src", "dir"]}]}..
Copyright © 2009, 2010 Dave Smith
-------------------------------------------------------------------
Authors: Dave Smith (dizzyd@dizzyd.com).
rebar_eunit supports the following commands:
- eunit - runs eunit tests
- clean - remove ?EUNIT_DIR directory
- reset_after_eunit::boolean() - default = true.
If true, try to "reset" VM state to approximate state prior to
running the EUnit tests:
- Stop net_kernel if it was started
- Stop OTP applications not running before EUnit tests were run
- Kill processes not running before EUnit tests were run
- Reset OTP application environment variables
The following Global options are supported:
- verbose=1 - show extra output from the eunit test
-
suites="foo,bar" - runs tests in foo.erl, test/foo_tests.erl and
tests in bar.erl, test/bar_tests.erl
-
suites="foo,bar" tests="baz"- runs first test with name starting
with 'baz' in foo.erl, test/foo_tests.erl and tests in bar.erl,
test/bar_tests.erl
-
tests="baz"- For every existing suite, run the first test whose
name starts with baz and, if no such test exists, run the test
whose name starts with baz in the suite's _tests module
Additionally, for projects that have separate folders for the core
implementation, and for the unit tests, then the following
rebar.config option can be provided:
{eunit_compile_opts, [{src_dirs, ["src", "dir"]}]}..
clean(Config, File) -> any()
eunit(Config, AppFile) -> any()
Generated by EDoc