e2e_test/README.md
This folder contains sqllogictest source files for e2e. It is running on CI for integration.
e2e test should drop table if created one to avoid table exist conflict (Currently all tests are running in a single database).
Refer to the RisingWave Developer Guide.
[!NOTE]
Usually you will just need to run either batch tests or streaming tests. Other tests may need to be run under some specific settings, e.g., ddl tests need to be run on a fresh instance, and database tests need to first create a database and then connect to that database to run tests.
You will never want to run all tests using
./e2e_test/**/*.slt. You may refer to the ci script to see how to run all tests.
See the connector development guide.
If you run risedev slt the following environment variables are set:
SLT_HOST = "${RISEDEV_RW_FRONTEND_LISTEN_ADDRESS}"
SLT_PORT = "${RISEDEV_RW_FRONTEND_PORT}"
SLT_DB = "dev"
The check_slt_coverage.py script provides a basic assessment of SLT coverage, i.e., whether all SLT files are referenced by CI scripts under ci/scripts.
python3 e2e_test/check_slt_coverage.py -d # show directory-level analysis
python3 e2e_test/check_slt_coverage.py -d -o output.json # save detailed results to file
python3 e2e_test/check_slt_coverage.py --help # for more options
The e2e_test/.coverageignore file uses gitignore-like syntax to specify patterns for files that should be excluded from coverage analysis. This is useful for: