Skip to content
Maven plugin for running Unit Tests with utPLSQL v3
Branch: develop
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Swap DriverManager for DataSource Jun 4, 2019

Build status Quality Gate


  • A maven plugin for running Unit Tests with utPLSQL v3+.


  • This plugin is compatible with utPLSQL 3.1.0+.


  • Java SE Runtime Environment 8
  • Maven Version 3.5+

The plugin requires Oracle JDBC driver (ojdbc8) as a maven dependency. In order to download the required driver, you need to configure access to Oracle's Maven Repository in your settings.xml file.

Sections 6.1 and 6.5 are the more important ones, and the only ones you need if you're using the latest Maven version.

Below is an example of changes needed to your settings.xml file.

                <realm>OAM 11g</realm>


Please refer to the following usage example for the parameters descriptions.

<project xmlns=""


        <!-- URL of the connection to the database. -->
        <!-- Can also be passed as execution parameters. -->
        <!-- -DdbUrl="jdbc:oracle:thin:@" -->
        <!-- Database connection user. -->
        <!-- -DdbUser="user" -->
        <!-- Database connection password. -->
        <!-- -DdbPassword="password" -->

                            <!-- REQUIRED PARAMETERS -->
                            <!-- A list of tests suite paths. -->
                            <!-- The path(s) can be in one of the following formats: -->
                            <!--     schema[.package[.procedure]] -->
                            <!--     schema:suite[.suite[.suite][...]][.procedure] -->
                            <!-- Both formats can be mixed in the list. -->
                            <!-- If only schema is provided, then all suites -->
                            <!-- owned by that schema are executed. -->

                                    <!-- Path to project source files. -->
                                    <!-- File patterns to include. -->

                                    <!-- Path to project test files. -->
                                    <!-- File patterns to include. -->
                            <!-- OPTIONAL PARAMETERS -->
                            <!-- Continue in case of failure. -->
                            <!-- Defaults to: ${maven.test.failure.ignore} -->
                            <!-- Skip the utPLSQL version compatibility check. -->
                            <!-- Defaults to: false -->
                            <!-- Comma-separated object list to include in the coverage report. -->
                            <!-- Format: [schema.]package[,[schema.]package ...]. -->
                            <!-- See coverage reporting options in framework documentation. -->
                            <!-- Comma-separated object list to exclude from the coverage report. -->
                            <!-- Format: [schema.]package[,[schema.]package ...]. -->
                            <!-- See coverage reporting options in framework documentation. -->
                            <!-- List of reporters. -->
                            <!-- You can pass the name of the reporter and/or the output file -->
                            <!-- of the reporter and/or if the report is logged to the console. -->
                            <!-- If you don't pass any reporter, UT_DOCUMENTATION_REPORTER will be used. -->
                            <!-- This is a current list of the names of the reporters, -->
                            <!-- see UtPLSQL documentation in order to check the final list: -->
                            <!--     UT_DOCUMENTATION_REPORTER -->
                            <!--     UT_COVERAGE_HTML_REPORTER -->
                            <!--     UT_TEAMCITY_REPORTER -->
                            <!--     UT_XUNIT_REPORTER -->
                            <!--     UT_COVERALLS_REPORTER -->
                            <!--     UT_COVERAGE_SONAR_REPORTER -->
                            <!--     UT_SONAR_TEST_REPORTER -->
                                    <!-- The file output path. -->
                                    <!-- Indicates if should write to console. -->
                            <!-- Custom source code mapping options. -->
                            <!-- See coverage reporting options in framework documentation. -->
                                    <type>package body</type>
                            <!-- Custom test code mapping options. -->
                            <!-- See coverage reporting options in framework documentation. -->
                                    <type>package body</type>


More project samples are available in the src/test/resources directory:

  • simple-project: minimalist test project with standard project directory structure.
  • regex-project: overrides project directory structure and use additional parameters (sourcesRegexExpression, testsRegexExpression, ...), to tell utPLSQL how project files should be mapped into database objects.
  • type-mapping-project: this project shows how to use regex and custom type parameters together.
  • owner-param-project: this project demonstrates how to use sourcesOwner and testsOwner parameters.

Comparaison with the CLI

CLI short parameter CLI long parameter maven XML path
-c --color
-f --format
-o reporters.reporter.fileOutput
-s reporters.reporter.consoleOutput
-p --path paths.path
-scc --skip-compatibility-check skipCompatibilityCheck
-exclude excludeObject
-include includeObject
-owner sourcesOwner
-regex_expression sourcesRegexExpression
-type_mapping list of testsCustomTypeMapping.customTypeMapping
-owner_subexpression sourcesOwnerSubexpression
-type_subexpression sourcesTypeSubexpression
-name_subexpression sourcesNameSubexpression
-owner testsOwner
-regex_expression testsRegexExpression
-type_mapping list of testsCustomTypeMapping.customTypeMapping
-owner_subexpression testsOwnerSubexpression
-type_subexpression testsTypeSubexpression
-name_subexpression testsNameSubexpression
You can’t perform that action at this time.