Skip to content

Testing with Common Test

walter-weinmann edited this page Oct 27, 2017 · 6 revisions

1. Common Test Environment

All files related to Common Test (and coverage analysis and eunit) can be found in the directory test. The main components in directory test are:

  • for each common test suite:
    • for performance testing, e.g. performance_x...x_SUITE.erl.
    • for reliability testing, e.g. reliability_x...x_SUITE.erl.
  • the eunit test files:
    • for performance testing, e.g. performance_x...x_SUITE.tst.
    • for reliability testing, e.g. reliability_x...x_SUITE.tst.
  • test specification files - suffixed with .spec -, eg. all.spec,

Furthermore, the following files have been adjusted:

  • .gitignore: defines the test files to be ignored,
  • .travis.yml: adds a rebar3 ct command (after success),
  • rebar.config: defines the common test options.

2. Running Common Test

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 included in Travis CI.

3. Checking Common Test Results

The results of the common test execution can be checked in the following file:

file:///.../syparse/_build/test/logs/index.html

The results of the coverage analysis can be checked in the following file:

file:///.../syparse/_build/test/cover/index.html

Clone this wiki locally