Skip to content

Testing with Common Test

walter-weinmann edited this page Nov 28, 2017 · 14 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:

  • the common test suites:
    • for performance testing, e.g. generated/ct/performance_x...x_SUITE.erl.
    • for reliability testing, e.g. generated/ct/reliability_x...x_SUITE.erl.
  • the eunit test files:
    • for reliability testing, e.g. generated/eunit/reliability_x...x.tst.
  • the source code of:
    • the test data generator: ocparse_generator,
    • the test driver: ocparse_test.
  • the Unix and Windows scripts to:
    • generate test data. gen_tests,
    • generate test data and to run the tests: gen_tests_and_run.
    • perform stress testing: stress_test.

2. Running Tests

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 Test Results

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

Clone this wiki locally