@@ -85,6 +85,10 @@ create or replace type body ut_documentation_reporter is
8585
8686 overriding member procedure after_calling_run(self in out nocopy ut_documentation_reporter, a_run in ut_run) as
8787 l_summary_text varchar2(4000);
88+ l_warning_index pls_integer := 0;
89+ -- make all warning indexes uniformly indented
90+ c_warnings_lpad constant integer := length(to_char(a_run.results_count.warnings_count));
91+
8892 procedure print_failure_for_expectation(a_expectation ut_expectation_result) is
8993 l_lines ut_varchar2_list;
9094 begin
@@ -151,7 +155,8 @@ create or replace type body ut_documentation_reporter is
151155
152156 if a_item.warnings is not null and a_item.warnings.count > 0 then
153157 for i in 1 .. a_item.warnings.count loop
154- self.print_text(' ' || i || ') ' || a_item.path);
158+ l_warning_index := l_warning_index + 1;
159+ self.print_text(' ' || lpad(l_warning_index, c_warnings_lpad) || ') ' || a_item.path);
155160 self.lvl := self.lvl + 3;
156161 self.print_red_text(a_item.warnings(i));
157162 self.lvl := self.lvl - 3;
@@ -177,6 +182,7 @@ create or replace type body ut_documentation_reporter is
177182 print_failures_details(a_run);
178183 print_warnings(a_run);
179184 self.print_text('Finished in ' || a_run.execution_time || ' seconds');
185+
180186 l_summary_text :=
181187 a_run.results_count.total_count || ' tests, '
182188 || a_run.results_count.failure_count || ' failed, ' || a_run.results_count.errored_count || ' errored, '
0 commit comments