Skip to content

Commit

Permalink
Update ut_junit_reporter.tpb
Browse files Browse the repository at this point in the history
  • Loading branch information
jgebal committed May 23, 2019
1 parent 0af108d commit 02b89bd
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions source/reporters/ut_junit_reporter.tpb
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,11 @@ create or replace type body ut_junit_reporter is
ut_utils.append_to_list( l_results, '</error>');
elsif a_test.result > ut_utils.gc_success then
ut_utils.append_to_list( l_results, '<failure>');
ut_utils.append_to_list( l_results, c_cddata_tag_start);
for i in 1 .. a_test.failed_expectations.count loop

l_lines := a_test.failed_expectations(i).get_result_lines();

for j in 1 .. l_lines.count loop
ut_utils.append_to_list( l_results, dbms_xmlgen.convert(l_lines(j)) );
end loop;
ut_utils.append_to_list( l_results, dbms_xmlgen.convert(a_test.failed_expectations(i).caller_info) );
ut_utils.append_to_list( l_results, ut_utils.table_to_clob(a_test.failed_expectations(i).get_result_lines()));
end loop;
ut_utils.append_to_list( l_results, c_cddata_tag_end);
ut_utils.append_to_list( l_results, '</failure>');
end if;
-- TODO - decide if we need/want to use the <system-err/> tag too
Expand Down

0 comments on commit 02b89bd

Please sign in to comment.