Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>org.utplsql</groupId>
<artifactId>java-api</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>3.1.1-SNAPSHOT</version>
<packaging>jar</packaging>

<name>utPLSQL-java-api</name>
Expand All @@ -17,7 +17,7 @@
<junit.platform.version>1.0.3</junit.platform.version>
<junit.jupiter.version>5.0.3</junit.jupiter.version>
<coverage.resources.directory>${basedir}/src/main/resources/CoverageHTMLReporter</coverage.resources.directory>
<coverage.resources.version>1.0.0</coverage.resources.version>
<coverage.resources.version>1.0.1</coverage.resources.version>
<coverage.resources.zip.directory>utPLSQL-coverage-html-${coverage.resources.version}</coverage.resources.zip.directory>
<coverage.resources.zip>${coverage.resources.zip.directory}.zip</coverage.resources.zip>
</properties>
Expand Down
16 changes: 16 additions & 0 deletions src/test/java/org/utplsql/api/OutputBufferIT.java
Original file line number Diff line number Diff line change
@@ -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;

Expand Down Expand Up @@ -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<String> outputLines = reporter.getOutputBuffer().fetchAll(getConnection());

assertTrue(outputLines.size() > 0);
}

}