-
Notifications
You must be signed in to change notification settings - Fork 1
Testing with Common Test
All files related to Common Test can be found in the directory test
. The main components in directory ct are:
- test specification files - suffixed with
.spec
-, eg.all.spec
, - for each test suite, e.g. for module
generic_x...x.erl
:- a directory containing test suite related data:
generic_x...x_SUITE_DATA
, - the test suite module file, e.g.
generic_x...x_SUITE.erl
, - the compiled test suite module file, e.g.
generic_x...x_SUITE.beam
.
- a directory containing test suite related data:
Furthermore, the following files have been adjusted:
-
.gitignore
: defines the test suite beam files and the test result files to be ignored, -
.travis.yml
: adds arebar ct
command (after success
), -
rebar.config
: defines the Common Test directory and the associated log file directory.
Common Test, eunit and coverage analysis can all be executed from the command line with the appropriate rebar3 commands. The execution of Common Test is also be included in Travis CI.
The results of the common test execution can be checked in the following file:
file:///.../ocparse/_build/test/logs/index.html
The results of the coverage analysis can be checked in the following file:
file:///.../ocparse/_build/test/cover/index.html
Common Test is currently configured as a after success
script in Travis CI. This has the disadvantage, that the build of ocparse is marked as successfull even if Common Test fails.