Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update sonar
  • Loading branch information
lwasylow committed Feb 8, 2022
commit c762920238473c1792fa1163e6e5f25724c89021
2 changes: 1 addition & 1 deletion source/reporters/ut_sonar_test_reporter.tpb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ create or replace type body ut_sonar_test_reporter is
begin
ut_utils.append_to_list( l_results, '<testCase name="'||dbms_xmlgen.convert(a_test.name)||'" duration="'||round(a_test.execution_time()*1000,0)||'" >');
if a_test.result = ut_utils.gc_disabled then
ut_utils.append_to_list( l_results, '<skipped message="skipped"/>');
ut_utils.append_to_list( l_results, '<skipped message="'||coalesce(dbms_xmlgen.convert(a_test.disabled_reason),'skipped')||'"/>');
elsif a_test.result = ut_utils.gc_error then
ut_utils.append_to_list( l_results, '<error message="encountered errors">');
ut_utils.append_to_list( l_results, ut_utils.to_cdata( ut_utils.convert_collection( a_test.get_error_stack_traces() ) ) );
Expand Down
3 changes: 2 additions & 1 deletion test/ut3_user/reporters/test_sonar_test_reporter.pkb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ create or replace package body test_sonar_test_reporter as
<testCase name="passing_test" duration="%" >%</testCase>
<testCase name="failing_test" duration="%" >%<failure message="some expectations have failed">%</failure>%</testCase>
<testCase name="erroring_test" duration="%" >%<error message="encountered errors">%</error>%</testCase>
<testCase name="disabled_test" duration="0" >%<skipped message="skipped"/>%</testCase>
<testCase name="disabled_test" duration="0" >%<skipped message="Disabled for testing purpose"/>%</testCase>
<testCase name="disabled_test_no_reason" duration="0" >%<skipped message="skipped"/>%</testCase>
</file>
</testExecutions>]';

Expand Down