◐ Shell
clean mode source ↗

Standalone coverage by jgebal · Pull Request #1079 · utPLSQL/utPLSQL

Resolves #1025

Coverage can now be gathered outside of utPLSQL test run (without invoking ut.run)

Example:

begin 
    ut_runner.coverage_start('A6AA5B7361251CE6E053020011ACA078');
    some_schema.some_package.procedure; 
    ut_runner.coverage_stop();
end;
/

In same session or even a separate session (once previous call was finished) run:

    select *
      from
        table (
          ut_coverage_cobertura_reporter( ).get_report(
            ut_coverage_options(
              coverage_run_id => 'A6AA5B7361251CE6E053020011ACA078',
              include_objects => ut_varchar2_rows('SOME_PACKAGE'),
              schema_names => ut_varchar2_rows('SOME_SCHEMA')
              )
            )
          );

TODO

  • Documentation
  • Internal code cleanup and refactoring
  • Test fixes

@ksawerykarwacki - feel free to give a try to the version from this feature branch.
Let me know if you encounter any issues or have any questions.