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

Skip to content

Commit 028e835

Browse files
committed
Merge remote-tracking branch 'remotes/upstream/develop' into rolbackExceptionHandle
2 parents 56d72c2 + b5d0b8e commit 028e835

3 files changed

Lines changed: 11 additions & 9 deletions

File tree

source/create_synonyms_and_grants_for_public.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ grant execute on ut_match to public;
2727
grant execute on ut to public;
2828
grant execute on ut_runner to public;
2929
grant execute on ut_teamcity_reporter to public;
30+
grant execute on ut_xunit_reporter to public;
3031
grant execute on ut_documentation_reporter to public;
3132
grant execute on ut_reporters to public;
3233
grant execute on ut_varchar2_list to public;
@@ -49,6 +50,7 @@ create public synonym match for ut_match;
4950
create public synonym ut for ut;
5051
create public synonym ut_runner for ut_runner;
5152
create public synonym ut_teamcity_reporter for ut_teamcity_reporter;
53+
create public synonym ut_xunit_reporter for ut_xunit_reporter;
5254
create public synonym ut_documentation_reporter for ut_documentation_reporter;
5355
create public synonym ut_reporters for ut_reporters;
5456
create public synonym ut_varchar2_list for ut_varchar2_list;

source/create_synonyms_and_grants_for_user.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ grant execute on ut_match to &ut3_user;
2828
grant execute on ut to &ut3_user;
2929
grant execute on ut_runner to &ut3_user;
3030
grant execute on ut_teamcity_reporter to &ut3_user;
31+
grant execute on ut_xunit_reporter to &ut3_user;
3132
grant execute on ut_documentation_reporter to &ut3_user;
3233
grant execute on ut_reporters to &ut3_user;
3334
grant execute on ut_varchar2_list to &ut3_user;
@@ -50,6 +51,7 @@ create or replace synonym &ut3_user .match for match;
5051
create or replace synonym &ut3_user .ut for ut;
5152
create or replace synonym &ut3_user .ut_runner for ut_runner;
5253
create or replace synonym &ut3_user .ut_teamcity_reporter for ut_teamcity_reporter;
54+
create or replace synonym &ut3_user .ut_xunit_reporter for ut_xunit_reporter;
5355
create or replace synonym &ut3_user .ut_documentation_reporter for ut_documentation_reporter;
5456
create or replace synonym &ut3_user .ut_reporters for ut_reporters;
5557
create or replace synonym &ut3_user .ut_varchar2_list for ut_varchar2_list;

source/reporters/ut_documentation_reporter.tpb

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,15 @@ create or replace type body ut_documentation_reporter is
5959
self.print_red_text(l_lines(i));
6060
end loop;
6161
self.print_cyan_text(a_assert.caller_info);
62+
self.print_text(' ');
6263
end;
6364

6465
procedure print_failures_for_test(a_test ut_test, a_failure_no in out nocopy integer) is
6566
begin
6667
if a_test.result > ut_utils.tr_success then
6768
a_failure_no := a_failure_no + 1;
68-
self.print_text(lpad(a_failure_no, 4,' ')||') '||coalesce( a_test.name, a_test.item.form_name ));
69+
self.print_text(lpad(a_failure_no, length(failed_test_running_count)+2,' ')||') '||nvl( a_test.name, a_test.item.form_name ));
6970
self.lvl := self.lvl + 3;
70-
self.print_text('Failures/Errors:');
7171
for j in 1 .. a_test.results.count loop
7272
print_failure_for_assert(a_test.results(j));
7373
end loop;
@@ -89,7 +89,7 @@ create or replace type body ut_documentation_reporter is
8989
procedure print_failures_details(a_run in ut_run) is
9090
l_failure_no integer := 0;
9191
begin
92-
if a_run.results_count.failure_count > 0 then
92+
if a_run.results_count.failure_count > 0 or a_run.results_count.errored_count > 0 then
9393

9494
self.print_text( 'Failures:' );
9595
self.print_text( ' ' );
@@ -103,12 +103,10 @@ create or replace type body ut_documentation_reporter is
103103
print_failures_details(a_run);
104104
self.print_text( 'Finished in '||a_run.execution_time||' seconds' );
105105
l_summary_text :=
106-
a_run.results_count.total_count || ' tests, '||a_run.results_count.failure_count||' failure' ||
107-
-- failure or plural failures
108-
case when a_run.results_count.failure_count != 1 then 's' end ||
109-
case
110-
when a_run.results_count.ignored_count > 0 then ', '||a_run.results_count.ignored_count||' ignored'
111-
end;
106+
a_run.results_count.total_count || ' tests, '
107+
||a_run.results_count.failure_count||' failed, '
108+
||a_run.results_count.errored_count||' errored, '
109+
||a_run.results_count.ignored_count||' ignored';
112110
if a_run.results_count.failure_count > 0 then
113111
self.print_red_text(l_summary_text);
114112
else

0 commit comments

Comments
 (0)