You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<h2id="what-is-utplsql">What is utPLSQL<aclass="headerlink" href="#what-is-utplsql" title="Permanent link">¶</a></h2>
929
929
<p>utPLSQL is a Unit Testing framework for Oracle PL/SQL.
930
930
The framework follows industry standards and best patterns of modern Unit Testing frameworks like <ahref="http://junit.org/junit4/">JUnit</a> and <ahref="http://rspec.info/">RSpec</a></p>
<p>Annotations are used to configure tests and suites in a declarative way similar to modern OOP languages. This way, test configuration is stored along with the test logic inside the test package.
1147
1147
No additional configuration files or tables are needed for test cases. The annotation names are based on popular testing frameworks such as JUnit.
1148
1148
The framework runner searches for all the suitable annotated packages, automatically configures suites, forms the suite hierarchy, executes it and reports results in specified formats.</p>
<p>utPLSQL comes with a built-in coverage reporting engine. The code coverage reporting combines data from package DBMS_PROFILER and DBMS_PLSQL_CODE_COVERAGE.
1087
1087
Code coverage is gathered for the following source types:</p>
1088
1088
<ul>
@@ -2056,7 +2056,7 @@ <h2 id="reporting-coverage-outside-utplsql-and-in-parallel-sessions">Reporting c
<p>utPLSQL is responsible for handling exceptions wherever they occur in the test run. The framework is trapping most of the exceptions so that the test execution is not affected by individual tests or test packages throwing an exception.
834
834
The framework provides a full stacktrace for every exception that was thrown. The reported stacktrace does not include any utPLSQL library calls in it.
835
835
To achieve rerunability, the package state invalidation exceptions (ORA-04068, ORA-04061) are not handled and test execution will be interrupted if such exceptions are encountered. This is because of how Oracle behaves on those exceptions.</p>
@@ -1007,7 +1007,7 @@ <h1>Error handling and reporting</h1>
<p>Validation of the code under test (the tested logic of procedure/function etc.) is performed by comparing the actual data against the expected data.</p>
1280
1280
<p>utPLSQL uses expectations and matchers to perform the check on the data.</p>
@@ -3967,7 +3967,7 @@ <h3 id="notes-on-comparison-of-json-data">Notes on comparison of json data<a cla
<h1id="getting-started-with-tdd-and-utplsql">Getting started with TDD and utPLSQL<aclass="headerlink" href="#getting-started-with-tdd-and-utplsql" title="Permanent link">¶</a></h1>
1050
1050
<p>utPLSQL is designed in a way that allows you to follow
1051
1051
<ahref="https://en.wikipedia.org/wiki/Test-driven_development">Test Driven Development (TDD)</a> software development process.</p>
0 commit comments