You can also choose to run tests from this harness against other test database environments (i.e.which are not a dockerized containers). For instance, you may wish to run against a database running in the cloud or a native on-prem installation.
The execution & writing of tests will remain the same -- but you will need to recreate the starting test environment yourself. See below for instructions:
- In the
harness-config.yml
file, edit the jdbc URL to point to the hostname for your database.- If your username and/or password is different, you will need to modify those values as well.
- Ensure that you set up the test environment before executing the test-harness tests
- For example, if you need to run the tests against a postgres instance, then:
- You will need to manually create the
lbcat
database on your postgres database. For example, you can run:CREATE DATABASE "lbcat";
- You will need to manually execute the sql scripts from the
postgres-init.sh
(located atsrc/test/resources/docker/postgres-init.sh
) script, so that the database is pre-populated with the test database objects.
- You will need to manually create the
- For example, if you need to run the tests against a postgres instance, then: