Skip to content

Commit

Permalink
Added integration test for include schema by expression
Browse files Browse the repository at this point in the history
  • Loading branch information
simasch committed Jul 11, 2023
1 parent 1b68462 commit 175f23d
Show file tree
Hide file tree
Showing 7 changed files with 144 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/test/java/org/utplsql/maven/plugin/UtPlsqlMojoIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,19 @@ void ora_stuck_timeout(MavenExecutionResult result) {

assertThatReportsAreGeneratedAsExpected(result, "sonar-test-report.xml", "coverage-sonar-report.xml");
}

@MavenTest
void exclude_object_expr(MavenExecutionResult result) {
assertThat(result).isSuccessful();

assertThatReportsAreGeneratedAsExpected(result, "sonar-test-report.xml", "coverage-sonar-report.xml");
}

@MavenTest
void include_object_expr(MavenExecutionResult result) {
assertThat(result).isSuccessful();

assertThatReportsAreGeneratedAsExpected(result, "sonar-test-report.xml", "coverage-sonar-report.xml");
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<coverage version="1">
</coverage>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<testExecutions version="1">
<file path="plsql.examples.test_pkg_test_me">
<testCase name="test_fc_input_1" duration="1" ></testCase>
<testCase name="test_fc_input_0" duration="1" ></testCase>
<testCase name="test_fc_input_null" duration="1" ></testCase>
<testCase name="test_pr_test_me_null" duration="1" ></testCase>
<testCase name="test_pr_test_me_not_null" duration="1" ></testCase>
<testCase name="test_pr_test_me_exists" duration="1" ></testCase>
<testCase name="test_pr_test_me_cursor" duration="1" ></testCase>
</file>
</testExecutions>
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>org.utplsql</groupId>
<artifactId>owner-param</artifactId>
<version>1.0.0</version>
<packaging>pom</packaging>

<properties>
<dbUrl>jdbc:oracle:thin:@localhost:1521:xe</dbUrl>
<dbUser>UT3</dbUser>
<dbPass>UT3</dbPass>
</properties>

<build>
<plugins>
<plugin>
<groupId>org.utplsql</groupId>
<artifactId>utplsql-maven-plugin</artifactId>
<version>@project.version@</version>
<executions>
<execution>
<goals>
<goal>test</goal>
</goals>
<configuration>
<ignoreFailure>false</ignoreFailure>
<paths>
<path>TESTS_OWNER</path>
</paths>
<reporters>
<reporter>
<name>UT_COVERAGE_SONAR_REPORTER</name>
<fileOutput>utplsql/coverage-sonar-report.xml</fileOutput>
<consoleOutput>true</consoleOutput>
</reporter>
<reporter>
<name>UT_SONAR_TEST_REPORTER</name>
<fileOutput>utplsql/sonar-test-report.xml</fileOutput>
<consoleOutput>true</consoleOutput>
</reporter>
</reporters>
<excludeObjectExpr>*pkg_test_me</excludeObjectExpr>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<testExecutions version="1">
<file path="plsql.examples.test_pkg_test_me">
<testCase name="test_fc_input_1" duration="1" ></testCase>
<testCase name="test_fc_input_0" duration="1" ></testCase>
<testCase name="test_fc_input_null" duration="1" ></testCase>
<testCase name="test_pr_test_me_null" duration="1" ></testCase>
<testCase name="test_pr_test_me_not_null" duration="1" ></testCase>
<testCase name="test_pr_test_me_exists" duration="1" ></testCase>
<testCase name="test_pr_test_me_cursor" duration="1" ></testCase>
</file>
</testExecutions>
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>org.utplsql</groupId>
<artifactId>owner-param</artifactId>
<version>1.0.0</version>
<packaging>pom</packaging>

<properties>
<dbUrl>jdbc:oracle:thin:@localhost:1521:xe</dbUrl>
<dbUser>UT3</dbUser>
<dbPass>UT3</dbPass>
</properties>

<build>
<plugins>
<plugin>
<groupId>org.utplsql</groupId>
<artifactId>utplsql-maven-plugin</artifactId>
<version>@project.version@</version>
<executions>
<execution>
<goals>
<goal>test</goal>
</goals>
<configuration>
<ignoreFailure>false</ignoreFailure>
<paths>
<path>TESTS_OWNER</path>
</paths>
<reporters>
<reporter>
<name>UT_COVERAGE_SONAR_REPORTER</name>
<fileOutput>utplsql/coverage-sonar-report.xml</fileOutput>
<consoleOutput>true</consoleOutput>
</reporter>
<reporter>
<name>UT_SONAR_TEST_REPORTER</name>
<fileOutput>utplsql/sonar-test-report.xml</fileOutput>
<consoleOutput>true</consoleOutput>
</reporter>
</reporters>
<includeObjectExpr>app.*</includeObjectExpr>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 175f23d

Please sign in to comment.