◐ Shell
clean mode source ↗

fix(doc): Update running-unit-tests.md - remove example by gassenmj · Pull Request #1261 · utPLSQL/utPLSQL

Hi @gassenmj
It is great to see that someone is actually reading the documentation 😄

There is a slight difference n the two examples. and the documentation does not do a great job describing the differnece.

You can run tests by passing individual items to be executed as elements of the ut_varchar2_list table type.

set serveroutput on
begin
  ut.run(ut_varchar2_list('hr.test_apply_bonus','cust'));
end;

You can run tests by passing all items as a comma-separated-list of values into a single element of the ut_varchar2_list table type.

set serveroutput on
begin
  ut.run(ut_varchar2_list('hr.test_apply_bonus,cust)');
end;

See the difference:

begin
  ut.run(ut_varchar2_list('hr.test_apply_bonus','cust'));
  ut.run(ut_varchar2_list('hr.test_apply_bonus,cust)');
end;

The framework is very flexible in terms of format for this input parameter.

Perhaps better description of those examples would bring more value to the documentation.

What are your thoughts?