-
Notifications
You must be signed in to change notification settings - Fork 15
Testing with Common Test
walter-weinmann edited this page Apr 6, 2018
·
3 revisions
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
, - reliability testing, e.g.
generated/ct/reliability_x...x_SUITE.erl
.
- performance testing, e.g.
- the eunit test files:
- manually created eunit test cases for sqlparse_fold, e.g.
alter.tst
. - generated reliability testing, e.g.
generated/eunit/reliability_x...x.tst
, - the formatter tests for development purposes:
sqlparse_adhoc_test.tst
, - manually created eunit test cases for sqlparse_format,
sqlparse_formatter_test.hrl
.
- manually created eunit test cases for sqlparse_fold, e.g.
- the source code of:
- the formatter testing tool for development purposes:
sqlparse_adhoc_test
, - the test driver for sqlparse_format:
sqlparse_formatter_test
, - the test data generator:
sqlparse_generator
, - the test driver for sqlparse_fold:
sqlparse_test
.
- the formatter testing tool for development purposes:
- 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
, - simulation of the Travis CI tasks:
travis
.
- generate test data.
Common test, eunit and coverage analysis can all be executed from the command line with the appropriate rebar3 commands.
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