- TO_UT_OBJECT_LIST Function
- VERSION Function
- VERSION_COMPATIBILITY_CHECK Function
- RUN Procedure
- REBUILD_ANNOTATION_CACHE Procedure
- PURGE_CACHE Procedure
- GET_UNIT_TEST_INFO Function
- GET_REPORTERS_LIST Function
Private functions
function to_ut_object_list(a_names ut_varchar2_list, a_schema_names ut_varchar2_rows) return ut_object_names
Public functions
function version return varchar2
Check if version is compatible with another version (by default the current framework version)
Version is compatible if:
a_current.major = a_requested.major
a_requested.minor < a_current.minor or a_requested.minor = a_current.minor and a_requested.bugfix <= a_current.bugfix
function version_compatibility_check( a_requested varchar2, a_current varchar2 := null ) return integer
Name | Description |
---|---|
a_requested |
requested utPLSQL version string |
a_current |
current utPLSQL version string, if null is passed, defaults to current framework version |
return | 1/0 1-true, 0-false |
Execute specified suites/tests by paths
procedure run(
a_paths ut_varchar2_list, a_reporters ut_reporters, a_color_console boolean := false,
a_coverage_schemes ut_varchar2_list := null, a_source_file_mappings ut_file_mappings := null, a_test_file_mappings ut_file_mappings := null,
a_include_objects ut_varchar2_list := null, a_exclude_objects ut_varchar2_list := null,
a_fail_on_errors boolean default false
)
Name | Description |
---|---|
a_paths |
list of schemes, packages, procedures or suite-paths to execute |
a_reporters |
list of reporter objects (formats) to use for reporting |
a_color_console |
true/false - should the console format reporters use ANSI color tags |
a_coverage_schemes |
list of database schemes to include in coverage |
a_source_file_mappings |
list of project source files mapped to DB objects that coverage should be reported on |
a_test_file_mappings |
list of project test files mapped to DB objects that test results should be reported on |
a_include_objects |
list of database objects (in format 'owner.name') that coverage should be reported on |
a_exclude_objects |
list of database objects (in format 'owner.name') that coverage should be skipped for |
a_fail_on_errors |
true/false - should an exception be thrown when tests are completed with failures/errors |
Parameter `a_paths` accepts values of the following formats:
schema - executes all suites in the schema
schema:suite1[.suite2] - executes all items of suite1 (suite2) in the schema.
suite1.suite2 is a suitepath variable
schema:suite1[.suite2][.test1] - executes test1 in suite suite1.suite2
schema.suite1 - executes the suite package suite1 in the schema "schema"
all the parent suites in the hiearcy setups/teardown procedures as also executed
all chile items are executed
schema.suite1.test2 - executes test2 procedure of suite1 suite with execution of all parent setup/teardown procedures
Rebuilds annotation cache for a specified schema and object type.
It can be used to speedup execution of utPLSQL on a given schema
if it is executed before initial call made to ut.run
or ut_runner.run
procedure.
procedure rebuild_annotation_cache(a_object_owner varchar2, a_object_type varchar2 := null)
Name | Description |
---|---|
a_object_owner |
owner of objects to get annotations for |
a_object_type |
optional type of objects to get annotations for (defaults to 'PACKAGE') |
Removes cached information about annotations for objects of specified type and specified owner
procedure purge_cache(a_object_owner varchar2 := null, a_object_type varchar2 := null)
Name | Description |
---|---|
a_object_owner |
optional - owner of objects to purge annotations for. If null (default) then all schemas are purged |
a_object_type |
optional - type of objects to purge annotations for. If null (default) then cache for all object types is purged |
Returns a pipelined collection containing information about unit tests package/packages for a given owner
function get_unit_test_info(a_owner varchar2, a_package_name varchar2 := null) return tt_annotations pipelined
Name | Description |
---|---|
a_owner |
owner of unit tests to retrieve |
a_package_name |
optional name of unit test package to retrieve, if NULLm all unit test packages are returned |
return | tt_annotations table of records |
Returns a list of available reporters. Gives information about whether a reporter is an output reporter or not
function get_reporters_list return tt_reporters_info pipelined
Name | Description |
---|---|
return | tt_reporters_info |