diff --git a/debezium-connector-jdbc/.github/workflows/build-workflow.yml b/debezium-connector-jdbc/.github/workflows/build-workflow.yml index 8cc5879cd..43a950dd4 100644 --- a/debezium-connector-jdbc/.github/workflows/build-workflow.yml +++ b/debezium-connector-jdbc/.github/workflows/build-workflow.yml @@ -79,7 +79,7 @@ jobs: - name: Build core run: mvn clean install -f core/pom.xml -DskipTests -DskipITs -Dformat.formatter.goal=validate -Dformat.imports.goal=check - name: Build sink - run: mvn clean install -f jdbc/pom.xml -B -Passembly -Dtags=it-db2,e2e-db2 -Dsource.connectors=mysql,postgres,sqlserver + run: mvn clean install -f jdbc/pom.xml -B -Passembly -Dtest.tags=it-db2,e2e-db2 -Dsource.connectors=mysql,postgres,sqlserver # Build step that checks out the source, builds, and includes the integration and the # end to end tests for MySQL as part of the build step. @@ -111,7 +111,7 @@ jobs: - name: Build core run: mvn clean install -f core/pom.xml -DskipTests -DskipITs -Dformat.formatter.goal=validate -Dformat.imports.goal=check - name: Build sink - run: mvn clean install -f jdbc/pom.xml -B -Passembly -Dtags=it-mysql,e2e-mysql -Dsource.connectors=mysql,postgres,sqlserver + run: mvn clean install -f jdbc/pom.xml -B -Passembly -Dtest.tags=it-mysql,e2e-mysql -Dsource.connectors=mysql,postgres,sqlserver # Build step that checks out the source, builds, and includes the integration and the # end to end tests for Oracle as part of the build step. @@ -143,7 +143,7 @@ jobs: # - name: Build core # run: mvn clean install -f core/pom.xml -DskipTests -DskipITs -Dformat.formatter.goal=validate -Dformat.imports.goal=check # - name: Build sink -# run: mvn clean install -f jdbc/pom.xml -B -Passembly -Dtags=it-oracle,e2e-oracle -Dsource.connectors=mysql,postgres,sqlserver +# run: mvn clean install -f jdbc/pom.xml -B -Passembly -Dtest.tags=it-oracle,e2e-oracle -Dsource.connectors=mysql,postgres,sqlserver # Build step that checks out the source, builds, and includes the integration and the # end to end tests for PostgreSQL as part of the build step. @@ -175,7 +175,7 @@ jobs: - name: Build core run: mvn clean install -f core/pom.xml -DskipTests -DskipITs -Dformat.formatter.goal=validate -Dformat.imports.goal=check - name: Build sink - run: mvn clean install -f jdbc/pom.xml -B -Passembly -Dtags=it-postgresql,e2e-postgresql -Dsource.connectors=mysql,postgres,sqlserver + run: mvn clean install -f jdbc/pom.xml -B -Passembly -Dtest.tags=it-postgresql,e2e-postgresql -Dsource.connectors=mysql,postgres,sqlserver # Build step that checks out the source, builds, and includes the integration and the # end to end tests for SQL Server as part of the build step. @@ -207,4 +207,4 @@ jobs: - name: Build core run: mvn clean install -f core/pom.xml -DskipTests -DskipITs -Dformat.formatter.goal=validate -Dformat.imports.goal=check - name: Build sink - run: mvn clean install -f jdbc/pom.xml -B -Passembly -Dtags=it-sqlserver,e2e-sqlserver -Dsource.connectors=mysql,postgres,sqlserver + run: mvn clean install -f jdbc/pom.xml -B -Passembly -Dtest.tags=it-sqlserver,e2e-sqlserver -Dsource.connectors=mysql,postgres,sqlserver diff --git a/debezium-connector-jdbc/README.md b/debezium-connector-jdbc/README.md index a2aa01750..7de825d02 100644 --- a/debezium-connector-jdbc/README.md +++ b/debezium-connector-jdbc/README.md @@ -115,26 +115,26 @@ There are three types of types in the test suite: By default all unit tests are executed as a part of the build. The sink-based integration tests are only executed for MySQL, PostgreSQL, and SQL Server by default, while none of the end-to-end matrix-based tests are executed. -In order to execute the sink-based integration tests for Oracle and DB2, the `-Dtags` argument must be provided to include these in the build. +In order to execute the sink-based integration tests for Oracle and DB2, the `-Dtest.tags` argument must be provided to include these in the build. In order to do this, add all the integration tests to be executed, as shown below for all databases: - $ ./mvnw clean install -Dtags=it-mysql,it-postgresql,it-sqlserver,it-oracle,it-db2 + $ ./mvnw clean install -Dtest.tags=it-mysql,it-postgresql,it-sqlserver,it-oracle,it-db2 In order to run all sink-based integration tests for all databases, a short-cut tag is provided: - $ ./mvnw clean install -Dtags=it + $ ./mvnw clean install -Dtest.tags=it -Similarly, in order to enable specific end to end tests, the `-Dtags` argument can also be supplied with the necessary tags for each sink database type: +Similarly, in order to enable specific end to end tests, the `-Dtest.tags` argument can also be supplied with the necessary tags for each sink database type: - $ ./mvnw clean install -Dtags=e2e-mysql,e2e-postgresql,e2e-sqlserver,e2e-oracle,e2e-db2 + $ ./mvnw clean install -Dtest.tags=e2e-mysql,e2e-postgresql,e2e-sqlserver,e2e-oracle,e2e-db2 In order to run all end to end integration tests, a short-cut tag is provided as well: - $ ./mvnw clean install -Dtags=e2e + $ ./mvnw clean install -Dtest.tags=e2e In order to run all tests for all source/sink combinations: - $ ./mvnw clean install -Dtags=all + $ ./mvnw clean install -Dtest.tags=all ## Contributing diff --git a/debezium-connector-jdbc/pom.xml b/debezium-connector-jdbc/pom.xml index a3bda8dc0..6952d70ed 100644 --- a/debezium-connector-jdbc/pom.xml +++ b/debezium-connector-jdbc/pom.xml @@ -45,7 +45,7 @@ e2e - runs all end to end tests all - runs all integration and end to end tests --> - it-mysql,it-postgresql,it-sqlserver + it-mysql,it-postgresql,it-sqlserver @@ -294,7 +294,7 @@ - ${tags} + ${test.tags}