Clone this wiki locally
Build the tests like this
To run the test first do:
and then start Erlang:
To run all test suites do
Note that running all tests will require several hours, so you may want to run the test cases for a single application
or even part of the test suite for an application, for example
ts:run(emulator, bs, [batch]).
to run all test suite modules starting with
bs (i.e. all modules that test the bit syntax).
To run a specific test case in a module, the full name of the module and test case must be spelled out:
ts:run(emulator, bs_bincomp_SUITE, byte_aligned, [batch]).
ts:help() to show some help.
There will currently be 15 or so failed test cases in the
As of R14B02 it is also possibly to start all tests but the erl_interface tests by invoking Common Test directly from the released applications test directory, i.e.
cd release/tests/compiler_test $ERL_TOP/bin/ct_run -pa ../test_server/ -suite andor_SUITE -case t_orelse
For more information about ct_run see http://www.erlang.org/doc/man/ct_run.html
Examining the results
Open the file
release/tests/test_server/index.html in a web browser. Or open
release/tests/test_server/last_test.html when a test suite is running to examine the results so far for the currently executing test suite (in and later R14B02 you want to open the
release/tests/test_server/all_runs.html file to get to the currently running test)