Skip to main content
utPLSQL logo

utPLSQL Review

CategoryDatabase TestingFirst ReleasedNot statedOfficial SiteDeploymentSelf-hosted
Licensing Model
Free & Open Source
  • Apache 2.0
  • No paid edition
  • Needs no extra Oracle licensed features
  • CLI and plugins also open source
Free Plan
Free
  • Everything is free
  • Oracle Database 19c or newer
  • SE, EE, Cloud and Free editions
  • CLI needs Java 17 or newer
Maintainer
utPLSQL Development Labs
  • utPLSQL Development Labs Ltd.
  • Community contributors
  • v3 GitHub repository since Jan 2016
  • Latest: v3.2.3, 10 Jul 2026
Ratings
  • GitHub stars624
  • G2N/A
  • GartnerN/A

Overview

utPLSQL is a free, open-source unit testing framework for Oracle PL/SQL, inspired by the xUnit family (JUnit, NUnit and others). It is installed into the Oracle database itself, and tests are written in PL/SQL as packages marked with annotations such as --%suite and --%test. It is stewarded by utPLSQL Development Labs Ltd. under the Apache 2.0 licence, and version 3 has been developed on GitHub since January 2016.

Tests check results with readable expectations, for example ut.expect(l_total).to_equal(100), and can compare whole ref cursors, object types, collections and JSON, with a diff of mismatched rows. Each test runs in a transaction that is rolled back by default, so test data doesn't stay behind. Results go to the screen or to reporters for JUnit, SonarQube, TeamCity, Azure DevOps (TFS) and TAP, and code coverage reports come out as HTML, Sonar or Cobertura.

utPLSQL fits teams with business logic in Oracle PL/SQL who want automated tests in CI. Buyers should note that it works only with Oracle, that version 3.2 (April 2026) dropped Oracle versions older than 19c, that installing it needs a dedicated schema and several privileges (more for the DDL trigger and for coverage of other schemas), and that code compiled as NATIVE isn't covered.

Key Featuresโ€‹

Annotationsโ€‹

Tests are PL/SQL packages with annotations in comments: --%suite, --%test, setup and teardown (--%beforeall, --%afterall, --%beforeeach, --%aftereach, --%beforetest, --%aftertest), --%throws for expected exceptions, --%disabled, --%tags, --%context for nested groups, --%suitepath for hierarchies and --%rollback for transaction control.

Expectations and Matchersโ€‹

Expectations use ut.expect(actual).to_(matcher) or shortcuts such as to_be_null(). Matchers include equal, be_between, be_like, match, contain, have_count, be_empty, be_true, be_false and be_within.

Data Comparisonsโ€‹

Ref cursors, object types, nested tables, varrays and JSON (json_element_t, and native json on Oracle 21 and above) can be compared directly. Comparisons are data-type aware, column order can be ignored, and the diff shows mismatched values and extra or missing rows.

Automatic Rollbackโ€‹

By default each run is rolled back at the end, so uncommitted test changes are reverted. Manual transaction control is available when needed.

Tags and Random Orderโ€‹

Tag expressions such as '(api|fast)&!complex' select tests to run, and tests can run in random order with a repeatable seed.

Code Coverageโ€‹

Coverage combines Oracle's DBMS_PROFILER and DBMS_PLSQL_CODE_COVERAGE data, showing line coverage and partially covered lines based on blocks.

Best Selling Pointsโ€‹

  • Unit tests for PL/SQL written in PL/SQL, close to the code.
  • Rich comparisons of cursors, collections and JSON with clear diffs.
  • Automatic rollback keeps test data from leaking.
  • JUnit, SonarQube, TeamCity, Azure DevOps and TAP reporters for CI.
  • HTML, Sonar and Cobertura coverage reports.
  • Free under Apache 2.0, with a CLI, Maven plugin and IDE extensions.

Supported Integrationsโ€‹

Runners and APIs

  • utPLSQL-cli
  • Maven plugin
  • Java API
  • .NET API

IDEs

  • Oracle SQL Developer
  • PL/SQL Developer

CI and Quality Tools

  • SonarQube / SonarCloud
  • Jenkins (Cobertura)
  • TeamCity
  • Azure DevOps / TFS
  • GitHub Actions (demo project)
  • JUnit XML consumers

utPLSQL is a community open-source project and doesn't publish a user list.

Supported Databasesโ€‹

utPLSQL runs inside Oracle Database.

  • Oracle 19c or newer
  • Standard Edition
  • Enterprise Edition
  • Oracle Cloud
  • Oracle Database Free

Database Detailsโ€‹

  • Oracle only: utPLSQL tests PL/SQL code and doesn't support other databases.
  • Minimum version: Oracle Database 19c; support for older versions was dropped in v3.2 (April 2026).
  • No extra licensed features are needed.
  • Native JSON comparisons need Oracle 21 or above.

How Tests Runโ€‹

  • Install: create an owner schema (default ut3) and run install.sql, or run the headless install script as SYSDBA. The owner needs privileges including CREATE PROCEDURE, CREATE TYPE, CREATE TABLE and EXECUTE on DBMS_LOCK and DBMS_CRYPTO.
  • Optional DDL trigger: recommended for large schemas such as Oracle E-Business Suite; it updates annotations at compile time and needs the ADMINISTER DATABASE TRIGGER privilege.
  • From an IDE or SQL console: exec ut.run(); or select * from table(ut.run());.
  • From CI: utplsql run <ConnectionURL> with the CLI (Java 17 or newer), which shows real-time progress, writes several report formats and maps database objects back to source files.
  • Example test:
create or replace package test_orders as
--%suite(Order totals)

--%test(Total includes tax)
procedure total_includes_tax;
end;
/
create or replace package body test_orders as
procedure total_includes_tax is
begin
ut.expect(orders_api.total(100, 0.2)).to_equal(120);
end;
end;
/

Reportingโ€‹

Key Reporting Featuresโ€‹

  • Test reporters: documentation (default), JUnit XML, Sonar, TeamCity, TFS/VSTS JUnit, TAP (version 14) and debug.
  • Coverage reporters: HTML, Sonar XML and Cobertura XML.
  • Custom reporters can be written in PL/SQL.
  • The Coveralls reporter was removed in v3.2.3 (July 2026).

Security & Complianceโ€‹

utPLSQL runs inside your own Oracle database, so test data stays there. It needs a dedicated owner schema with the privileges listed above; coverage of code owned by other users needs CREATE ANY PROCEDURE or CREATE ANY TRIGGER, which many DBAs restrict. v3.2.3 added support for installing into an editioned schema. The project publishes no certifications.

Pricingโ€‹

utPLSQL is free.

ComponentPriceLicence
utPLSQL framework$0Apache 2.0
utPLSQL-cli, Maven plugin, Java API$0Open source
SQL Developer and PL/SQL Developer extensions$0Open source
  • Your only costs are the Oracle database and CI compute.

Strengthsโ€‹

  • The most complete unit testing framework for Oracle PL/SQL.
  • Tests live in PL/SQL, next to the code they test.
  • Strong cursor, collection and JSON comparisons with diffs.
  • Many CI and quality-tool reporters, including SonarQube.
  • Built-in code coverage.
  • Active releases: v3.2.3 (July 2026), CLI and Maven plugin v3.2.2 (October 2026).

Limitationsโ€‹

  • Oracle only.
  • Needs Oracle Database 19c or newer since v3.2.
  • Installation needs a dedicated schema and several privileges.
  • Coverage of other schemas needs powerful ANY privileges.
  • Code compiled as NATIVE isn't included in coverage.
  • A small community compared with general-purpose test frameworks (624 GitHub stars).

Best Fit Scenariosโ€‹

  • Teams with business logic in Oracle PL/SQL packages.
  • Oracle shops adding PL/SQL tests to CI pipelines.
  • Teams reporting test results and coverage to SonarQube.
  • Developers working in SQL Developer or PL/SQL Developer.
  • Projects that need tests comparing query results row by row.
  • Large Oracle applications, such as E-Business Suite customisations, using the DDL trigger.