8000 Update sonar · utPLSQL/utPLSQL@c762920 · GitHub
[go: up one dir, main page]

Skip to content

Commit c762920

Browse files
committed
Update sonar
1 parent 78cfb83 commit c762920

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

source/reporters/ut_sonar_test_reporter.tpb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ create or replace type body ut_sonar_test_reporter is
4747
begin
4848
ut_utils.append_to_list( l_results, '<testCase name="'||dbms_xmlgen.convert(a_test.name)||'" duration="'||round(a_test.execution_time()*1000,0)||'" >');
4949
if a_test.result = ut_utils.gc_disabled then
50-
ut_utils.append_to_list( l_results, '<skipped message="skipped"/>');
50+
ut_utils.append_to_list( l_results, '<skipped message="'||coalesce(dbms_xmlgen.convert(a_test.disabled_reason),'skipped')||'"/>');
5151
elsif a_test.result = ut_utils.gc_error then
5252
ut_utils.append_to_list( l_results, '<error message="encountered errors">');
5353
ut_utils.append_to_list( l_results, ut_utils.to_cdata( ut_utils.convert_collection( a_test.get_error_stack_traces() ) ) );

test/ut3_user/reporters/test_sonar_test_reporter.pkb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ create or replace package body test_sonar_test_reporter as
99
<testCase name="passing_test" duration="%" >%</testCase>
1010
<testCase name="failing_test" duration="%" >%<failure message="some expectations have failed">%</failure>%</testCase>
1111
<testCase name="erroring_test" duration="%" >%<error message="encountered errors">%</error>%</testCase>
12-
<testCase name="disabled_test" duration="0" >%<skipped message="skipped"/>%</testCase>
12+
<testCase name="disabled_test" duration="0" >%<skipped message="Disabled for testing purpose"/>%</testCase>
13+
<testCase name="disabled_test_no_reason" duration="0" >%<skipped message="skipped"/>%</testCase>
1314
</file>
1415
</testExecutions>]';
1516

0 commit comments

Comments
 (0)
0