From 2cca6c09caf53bcc441aab06b425c1c7335b41de Mon Sep 17 00:00:00 2001 From: Samuel Nitsche Date: Thu, 17 May 2018 21:36:06 +0200 Subject: [PATCH 1/3] Bump version and add new test for sonar output --- pom.xml | 2 +- .../java/org/utplsql/api/OutputBufferIT.java | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 2da6cef..be284e4 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ org.utplsql java-api - 3.1.0-SNAPSHOT + 3.1.1-SNAPSHOT jar utPLSQL-java-api diff --git a/src/test/java/org/utplsql/api/OutputBufferIT.java b/src/test/java/org/utplsql/api/OutputBufferIT.java index a0c0032..d7b7ba0 100644 --- a/src/test/java/org/utplsql/api/OutputBufferIT.java +++ b/src/test/java/org/utplsql/api/OutputBufferIT.java @@ -1,6 +1,8 @@ package org.utplsql.api; import org.junit.jupiter.api.Test; +import org.utplsql.api.reporter.CoreReporters; +import org.utplsql.api.reporter.DefaultReporter; import org.utplsql.api.reporter.DocumentationReporter; import org.utplsql.api.reporter.Reporter; @@ -103,4 +105,18 @@ public void fetchAllLines() throws SQLException { assertTrue(outputLines.size() > 0); } + @Test + public void getOutputFromSonarReporter() throws SQLException { + Reporter reporter = new DefaultReporter(CoreReporters.UT_SONAR_TEST_REPORTER.name(), null).init(newConnection()); + + new TestRunner() + .addPath(getUser()) + .addReporter(reporter) + .run(getConnection()); + + List outputLines = reporter.getOutputBuffer().fetchAll(getConnection()); + + assertTrue(outputLines.size() > 0); + } + } From e6beb2c07a8de9f73bed13474f5644bdb05fd560 Mon Sep 17 00:00:00 2001 From: Samuel Nitsche Date: Thu, 17 May 2018 21:51:09 +0200 Subject: [PATCH 2/3] New coverage-assets release --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index be284e4..8a7ab9d 100644 --- a/pom.xml +++ b/pom.xml @@ -17,7 +17,7 @@ 1.0.3 5.0.3 ${basedir}/src/main/resources/CoverageHTMLReporter - 1.0.0 + 1.0.1 utPLSQL-coverage-html-${coverage.resources.version} ${coverage.resources.zip.directory}.zip From 70aeaafd41a919b2162b04c55b4c5241feeb7207 Mon Sep 17 00:00:00 2001 From: pesse Date: Thu, 17 May 2018 21:59:16 +0200 Subject: [PATCH 3/3] Added 3.1.0 and 3.1.1 to Travis matrix --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 6a2491c..38d2c59 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,6 +27,8 @@ env: - UTPLSQL_VERSION="v3.0.2" - UTPLSQL_VERSION="v3.0.3" - UTPLSQL_VERSION="v3.0.4" + - UTPLSQL_VERSION="v3.1.0" + - UTPLSQL_VERSION="v3.1.1" - UTPLSQL_VERSION="develop" UTPLSQL_FILE="utPLSQL"