./gradlew

This commit is contained in:
Gavin King 2022-01-25 12:38:37 +01:00
parent ef86097db7
commit 1f40ed164c
1 changed files with 19 additions and 19 deletions

View File

@ -107,13 +107,13 @@ You can run any test on any particular database that is configured in a `databas
All you have to do is run the following command:
----
gradlew setDataBase -Pdb=pgsql
./gradlew setDataBase -Pdb=pgsql
----
or you can use the shortcut version:
----
gradlew sDB -Pdb=pgsql
./gradlew sDB -Pdb=pgsql
----
You can do this from the module which you are interested in testing or from the `hibernate-orm` root folder.
@ -140,7 +140,7 @@ e.g. `pgsql_ci` for PostgreSQL. By using the system property `dbHost` you can co
The command for running tests could look like the following:
----
gradlew test -Pdb=pgsql_ci "-DdbHost=192.168.99.100"
./gradlew test -Pdb=pgsql_ci "-DdbHost=192.168.99.100"
----
The following table illustrates a list of commands for various databases that can be tested locally.
@ -150,65 +150,65 @@ The following table illustrates a list of commands for various databases that ca
|H2
|-
|`gradlew test -Pdb=h2`
|`./gradlew test -Pdb=h2`
|HSQLDB
|-
|`gradlew test -Pdb=hsqldb`
|`./gradlew test -Pdb=hsqldb`
|Apache Derby
|-
|`gradlew test -Pdb=derby`
|`./gradlew test -Pdb=derby`
|MySQL 5.7
|`./docker_db.sh mysql_5_7`
|`gradlew test -Pdb=mysql_ci`
|`./gradlew test -Pdb=mysql_ci`
|MySQL 8.0
|`./docker_db.sh mysql_8_0`
|`gradlew test -Pdb=mysql_ci`
|`./gradlew test -Pdb=mysql_ci`
|MariaDB
|`./docker_db.sh mariadb`
|`gradlew test -Pdb=mariadb_ci`
|`./gradlew test -Pdb=mariadb_ci`
|PostgreSQL 9.5
|`./docker_db.sh postgresql_9_5`
|`gradlew test -Pdb=pgsql_ci`
|`./gradlew test -Pdb=pgsql_ci`
|PostgreSQL 13
|`./docker_db.sh postgresql_13`
|`gradlew test -Pdb=pgsql_ci`
|`./gradlew test -Pdb=pgsql_ci`
|EnterpriseDB
|`./docker_db.sh edb`
|`gradlew test -Pdb=edb_ci`
|`./gradlew test -Pdb=edb_ci`
|Oracle XE
|`./docker_db.sh oracle`
|`gradlew test -Pdb=oracle_ci`
|`./gradlew test -Pdb=oracle_ci`
|Oracle EE
|`./docker_db.sh oracle_ee`
|`gradlew test -Pdb=oracle_docker`
|`./gradlew test -Pdb=oracle_docker`
|DB2
|`./docker_db.sh db2`
|`gradlew test -Pdb=db2_ci`
|`./gradlew test -Pdb=db2_ci`
|SQL Server
|`./docker_db.sh mssql`
|`gradlew test -Pdb=mssql_ci`
|`./gradlew test -Pdb=mssql_ci`
|Sybase ASE
|`./docker_db.sh sybase`
|`gradlew test -Pdb=sybase_ci`
|`./gradlew test -Pdb=sybase_ci`
|SAP HANA
|`./docker_db.sh hana`
|`gradlew test -Pdb=hana_ci`
|`./gradlew test -Pdb=hana_ci`
|CockroachDB
|`./docker_db.sh cockroachdb`
|`gradlew test -Pdb=cockroachdb`
|`./gradlew test -Pdb=cockroachdb`
|===