December 2010
Intermediate to advanced
451 pages
11h 16m
English
With a unit test package defined, you want to run it to verify that a function returns the values you expect under a variety of scenarios.
Use the utPLSQL.test procedure to run your test package. For example, suppose you want to run the unit test you built in 17-4. To do so, enter the following commands.
set serverout on
exec utPLSQL.test('factorial', recompile_in => FALSE)
Executing the commands above produces the following output.
.
> SSSS U U CCC CCC EEEEEEE SSSS SSSS
> S S U U C C C C E S S S S
> S U U C C C C E S S
> S U U C C E S S
> SSSS U U C C EEEE SSSS SSSS ...Read now
Unlock full access