Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

By default the unit tests will run with the H2 in memory database. If you want to run the tests with a different database you have to create theĀ taskanaUnitTest.properties file in your home directory.

That file must contain the following information:

  • jdbcDriver

  • jdbcUrl

  • dbUserName

  • dbPassword

  • schemaName

Use preconfigure database docker images

...

*nix (prepare_db.sh)

Execute ./docker-databases/prepare_db.sh -h and follow the help output for that script. It tells you how it works and which databases can be used

...

Examples for taskanaUnitTest.properties

DB2 11.1

...

taskanaUnitTest.properties
Code Block
jdbcDriver=com.ibm.db2.jcc.DB2Driver
jdbcUrl=jdbc:db2://<host>:<port>/<database>
dbUserName=<username>
dbPassword=<password>
schemaName=TASKANA

POSTGRES 10 latest

...

taskanaUnitTest.properties
Code Block
jdbcDriver=org.postgresql.Driver
jdbcUrl=jdbc:postgresql://<host>:<port>/<database>
dbUserName=<username>
dbPassword=<password>
schemaName=taskana

...