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

Skip to content

Commit b1f4a62

Browse files
committed
Fixing error message function
1 parent 176519c commit b1f4a62

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

source/core/ut_suite_manager.pkb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -704,15 +704,15 @@ create or replace package body ut_suite_manager is
704704
if a_suite_path is not null then
705705
l_error_msg := 'No suite packages found for path '||a_schema_name||':'||a_suite_path;
706706
elsif a_procedure_name is not null then
707-
l_error_msg := 'Suite test '||a_schema_name||'.'||a_object_name|| '.'||a_procedure_name||' does not exist';
707+
l_error_msg := 'Suite test '||a_schema_name||'.'||a_object_name|| '.'||a_procedure_name||' does not exists';
708708
elsif a_object_name is not null then
709-
l_error_msg := 'Suite package '||a_schema_name||'.'||a_object_name|| ' does not exist';
709+
l_error_msg := 'Suite package '||a_schema_name||'.'||a_object_name|| ' does not exists';
710710
end if;
711711

712712
if l_error_msg is null and a_tags is not null then
713713
l_error_msg := 'No tests found for tags: '||ut_utils.to_string(a_tags,a_max_output_len => gc_tag_errmsg);
714714
elsif l_error_msg is not null and a_tags is not null then
715-
l_error_msg := l_error_msg||'with tags: '||ut_utils.to_string(a_tags,a_max_output_len => gc_tag_errmsg);
715+
l_error_msg := l_error_msg||' with tags: '||ut_utils.to_string(a_tags,a_max_output_len => gc_tag_errmsg);
716716
end if;
717717

718718
l_error_msg := l_error_msg ||'.';

test/ut3_user/api/test_ut_run.pkb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ Failures:%
864864
l_results clob;
865865
l_exp_message varchar2(4000);
866866
begin
867-
l_exp_message :=q'[ORA-20204: No suite packages found for tags: 'nonexisting']';
867+
l_exp_message :=q'[ORA-20204: No tests found for tags: 'nonexisting'.]';
868868
ut3_tester_helper.run_helper.run(a_tags => 'nonexisting');
869869
l_results := ut3_tester_helper.main_helper.get_dbms_output_as_clob();
870870
ut.fail('Expecte test to fail');
@@ -900,7 +900,7 @@ Failures:%
900900
l_results clob;
901901
l_exp_message varchar2(4000);
902902
begin
903-
l_exp_message :=q'[ORA-20204: Suite package ut3_tester_helper.test_package_1 does not existwith tags: 'nonexists'.]';
903+
l_exp_message :=q'[ORA-20204: Suite package ut3_tester_helper.test_package_1 does not exists with tags: 'nonexists'.]';
904904
ut3.ut.run('ut3_tester_helper.test_package_1',a_tags => 'nonexists');
905905
l_results := ut3_tester_helper.main_helper.get_dbms_output_as_clob();
906906
ut.fail('Expecte test to fail');

0 commit comments

Comments
 (0)