-
Notifications
You must be signed in to change notification settings - Fork 1
Testing with Common Test
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:
- 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
.
- the test suite module file, e.g.
- the eunit test files:
- for the legacy standard, e.g.
generic_x...x.legacy
, - the current standard, e.g.
generic_x...x.tst
,
- for the legacy standard, e.g.
- test specification files - suffixed with
.spec
-, eg.all.spec
,
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 arebar3 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 included in Travis CI.
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
Common Test is currently configured as a after success
script in Travis CI. This has the disadvantage, that the build of syparse is marked as successfull even if common test fails.
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.
performance_x...x_SUITE.erl
. - for reliability testing, e.g.
reliability_x...x_SUITE.erl
.
- for performance testing, e.g.
- the eunit test file:
- manually created eunit test cases, e.g.
alter.tst
.
- manually created eunit test cases, e.g.
Furthermore, the following files have been adjusted:
-
.travis.yml
: adds arebar3 ct
command.
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.
The results of the common test execution can be checked in the following file:
file:///.../sqlparse/_build/test/logs/index.html
The results of the coverage analysis can be checked in the following file:
file:///.../sqlparse/_build/test/cover/index.html