Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 11728f1

Browse files
committed
Polished the ut_documentation_reporter outcomes.
1 parent 7e4c170 commit 11728f1

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

source/reporters/ut_documentation_reporter.tpb

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ create or replace type body ut_documentation_reporter is
5252
l_suite ut_test_suite := treat(a_suite as ut_test_suite);
5353
begin
5454
lvl := lvl - 1;
55-
self.print( ' ' );
55+
if lvl = 0 then
56+
self.print(' ');
57+
end if;
5658
end;
5759

5860
overriding member procedure after_run(self in out nocopy ut_documentation_reporter, a_suites in ut_objects_list) as
@@ -86,7 +88,7 @@ create or replace type body ut_documentation_reporter is
8688
if a_assert.caller_info is not null then
8789
self.print(a_assert.caller_info);
8890
end if;
89-
self.print('');
91+
self.print(' ');
9092
end if;
9193
end;
9294

@@ -116,7 +118,7 @@ create or replace type body ut_documentation_reporter is
116118
end loop;
117119
end;
118120

119-
procedure print_failures_summary is
121+
procedure print_failures_details(a_suites in ut_objects_list) is
120122
l_failure_no integer := 0;
121123
begin
122124
if failed_test_count > 0 then
@@ -129,7 +131,7 @@ create or replace type body ut_documentation_reporter is
129131
end;
130132

131133
begin
132-
print_failures_summary();
134+
print_failures_details(a_suites);
133135
for i in 1 .. a_suites.count loop
134136
l_start_time := least(l_start_time, treat(a_suites(i) as ut_test_object).start_time);
135137
l_end_time := greatest(l_end_time, treat(a_suites(i) as ut_test_object).end_time);
@@ -145,6 +147,7 @@ create or replace type body ut_documentation_reporter is
145147
when igonred_test_count > 0 then ', '||igonred_test_count||' ignored'
146148
end
147149
);
150+
self.print(' ');
148151
end;
149152

150153
end;

0 commit comments

Comments
 (0)