diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 339e804..4aa4259 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -76,6 +76,18 @@ jobs:
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
+ - name: Get project version
+ id: project_version
+ run: echo "version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_OUTPUT
+
+ - name: Trigger utPLSQL-cli snapshot build
+ uses: peter-evans/repository-dispatch@v3
+ with:
+ token: ${{ secrets.CLI_REPO_TOKEN }}
+ repository: utPLSQL/utPLSQL-cli
+ event-type: utPLSQL-java-api-build
+ client-payload: '{"api_version": "${{ steps.project_version.outputs.version }}"}'
+
- name: Publish unit test results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
diff --git a/pom.xml b/pom.xml
index b978e2d..c9e5c44 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
org.utplsql
utplsql-java-api
- 3.2.2
+ 3.2.4-SNAPSHOT
utPLSQL Java API
Java API for running Unit Tests with utPLSQL v3+.
@@ -19,6 +19,9 @@
utplsql
https://sonarcloud.io
+
+ 1.0.1
+ ${project.build.directory}/coverage-html-download
@@ -117,6 +120,49 @@
+
+ com.googlecode.maven-download-plugin
+ download-maven-plugin
+ 1.8.1
+
+
+ download-coverage-html-assets
+ generate-resources
+
+ wget
+
+
+ https://github.com/utPLSQL/utPLSQL-coverage-html/archive/refs/tags/${coverage.html.version}.zip
+ ${coverage.html.download.dir}
+ coverage-html.zip
+ true
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-resources-plugin
+ 3.3.1
+
+
+ copy-coverage-html-assets
+ process-resources
+
+ copy-resources
+
+
+ ${project.build.outputDirectory}/CoverageHTMLReporter
+
+
+ ${coverage.html.download.dir}/utPLSQL-coverage-html-${coverage.html.version}/assets
+ false
+
+
+
+
+
+
org.apache.maven.plugins
maven-compiler-plugin
diff --git a/scripts/sql/simple/scripts/tests/APP.TEST_PKG_TEST_ME.pkb b/scripts/sql/simple/scripts/tests/APP.TEST_PKG_TEST_ME.pkb
index 115bc15..e3623d5 100644
--- a/scripts/sql/simple/scripts/tests/APP.TEST_PKG_TEST_ME.pkb
+++ b/scripts/sql/simple/scripts/tests/APP.TEST_PKG_TEST_ME.pkb
@@ -122,5 +122,16 @@ CREATE OR REPLACE PACKAGE BODY TEST_PKG_TEST_ME AS
UT.EXPECT(VEXPECTED).TO_(EQUAL(VACTUAL));
END;
+
+ PROCEDURE TEST_THAT_FAILS IS
+ BEGIN
+ UT.FAIL('Tis test is meant to fail to demonstrate failure');
+ END;
+
+ PROCEDURE TEST_THAT_RAISES_EXCEPTION IS
+ l_num number;
+ BEGIN
+ l_num := 1/0;
+ END;
END;
/
diff --git a/scripts/sql/simple/scripts/tests/APP.TEST_PKG_TEST_ME.pks b/scripts/sql/simple/scripts/tests/APP.TEST_PKG_TEST_ME.pks
index 8a2b852..757cd5c 100644
--- a/scripts/sql/simple/scripts/tests/APP.TEST_PKG_TEST_ME.pks
+++ b/scripts/sql/simple/scripts/tests/APP.TEST_PKG_TEST_ME.pks
@@ -84,5 +84,10 @@ CREATE OR REPLACE PACKAGE TEST_PKG_TEST_ME AS
-- %tags(cursor)
PROCEDURE TEST_PR_TEST_ME_CURSOR;
+ -- %test( This is a failing test)
+ PROCEDURE TEST_THAT_FAILS;
+
+ -- %test( This is a test that raises an exception)
+ PROCEDURE TEST_THAT_RAISES_EXCEPTION;
END;
/
diff --git a/src/test/java/org/utplsql/api/TestRunnerIT.java b/src/test/java/org/utplsql/api/TestRunnerIT.java
index 4ceb184..0246c26 100644
--- a/src/test/java/org/utplsql/api/TestRunnerIT.java
+++ b/src/test/java/org/utplsql/api/TestRunnerIT.java
@@ -1,6 +1,5 @@
package org.utplsql.api;
-import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.function.Executable;
import org.utplsql.api.compatibility.CompatibilityProxy;
@@ -65,7 +64,6 @@ void runWithManyReporters() throws SQLException {
/**
* This can only be tested on frameworks >= 3.0.3
*/
- @Disabled
@Test
void failOnErrors() throws SQLException, InvalidVersionException {
Connection conn = getConnection();
@@ -82,8 +80,6 @@ void failOnErrors() throws SQLException, InvalidVersionException {
@Test
void runWithRandomExecutionOrder() throws SQLException {
- CompatibilityProxy proxy = new CompatibilityProxy(getConnection());
-
new TestRunner()
.randomTestOrder(true)
.randomTestOrderSeed(123)
diff --git a/src/test/java/org/utplsql/api/reporter/CoverageHTMLReporterAssetTest.java b/src/test/java/org/utplsql/api/reporter/CoverageHTMLReporterAssetTest.java
index b94cc32..b6e5297 100644
--- a/src/test/java/org/utplsql/api/reporter/CoverageHTMLReporterAssetTest.java
+++ b/src/test/java/org/utplsql/api/reporter/CoverageHTMLReporterAssetTest.java
@@ -1,6 +1,5 @@
package org.utplsql.api.reporter;
-import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;
@@ -25,7 +24,6 @@ private void testFileExists(Path filePath) {
assertTrue(f.exists(), () -> "File " + f + " does not exist");
}
- @Disabled("No idea why this ever worked")
@Test
void writeReporterAssetsTo() throws RuntimeException {