Skip to content

Commit

Permalink
chore: EXPOSED-104 Update gradle test tasks (#1832)
Browse files Browse the repository at this point in the history
* chore: EXPOSED-104 Update gradle test tasks

Update list of gradle tasks in DBTestingPlugin to include:
- a new task that runs all supported DB (replaces Gradle 'test' task)
- a new task that runs all the latest versions (except Oracle, due to speed)
- a new task that delegates to both PostgreSQL tasks
  • Loading branch information
bog-walk authored Aug 11, 2023
1 parent 5f06400 commit 73a78da
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ class DBTestingPlugin : Plugin<Project> {
testRuntimeOnly("org.postgresql", "postgresql", Versions.postgre)
testRuntimeOnly("com.impossibl.pgjdbc-ng", "pgjdbc-ng", Versions.postgreNG)
}
val postgresAll = register<Test>("postgresAllTest") {
group = "verification"
delegatedTo(postgres, postgresNG)
}

val oracle = register<DBTestWithDockerCompose>("oracleTest", Parameters("ORACLE", 1521)) {
testRuntimeOnly("com.oracle.database.jdbc", "ojdbc8", Versions.oracle12)
Expand All @@ -68,11 +72,9 @@ class DBTestingPlugin : Plugin<Project> {
val mariadb_v2 = register<DBTestWithDockerCompose>("mariadb_v2Test", Parameters("MARIADB", 3306)) {
testRuntimeOnly("org.mariadb.jdbc", "mariadb-java-client", Versions.mariaDB_v2)
}

val mariadb_v3 = register<DBTestWithDockerCompose>("mariadb_v3Test", Parameters("MARIADB", 3306)) {
testRuntimeOnly("org.mariadb.jdbc", "mariadb-java-client", Versions.mariaDB_v3)
}

val mariadb = register<Test>("mariadbTest") {
group = "verification"
delegatedTo(mariadb_v2, mariadb_v3)
Expand All @@ -82,9 +84,11 @@ class DBTestingPlugin : Plugin<Project> {
delegatedTo(
h2,
sqlite,
mysql51,
postgres,
postgresNG
mysql,
postgresAll,
oracle,
sqlServer,
mariadb
)
}
}
Expand Down

0 comments on commit 73a78da

Please sign in to comment.