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

Skip to content

Added missing <classes> tag #1137

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
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
7 changes: 7 additions & 0 deletions source/reporters/ut_coverage_cobertura_reporter.tpb
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ create or replace type body ut_coverage_cobertura_reporter is
c_packages_footer constant varchar2(30) := '</packages>';
c_package_footer constant varchar2(30) := '</package>';
c_class_footer constant varchar2(30) := '</class>';
c_classes_footer constant varchar2(30) := '</classes>';
c_lines_footer constant varchar2(30) := '</lines>';
l_epoch varchar2(50) := (sysdate - to_date('01-01-1970 00:00:00', 'dd-mm-yyyy hh24:mi:ss')) * 24 * 60 * 60;
begin
Expand Down Expand Up @@ -116,6 +117,11 @@ create or replace type body ut_coverage_cobertura_reporter is
l_result,
'<package name="'||dbms_xmlgen.convert(l_obj_name)||'" line-rate="0.0" branch-rate="0.0" complexity="0.0">'
);

ut_utils.append_to_list(
l_result,
'<classes>'
);

ut_utils.append_to_list(
l_result,
Expand All @@ -129,6 +135,7 @@ create or replace type body ut_coverage_cobertura_reporter is

ut_utils.append_to_list(l_result, c_lines_footer);
ut_utils.append_to_list(l_result, c_class_footer);
ut_utils.append_to_list(l_result, c_classes_footer);
ut_utils.append_to_list(l_result, c_package_footer);

l_unit := a_coverage_data.objects.next(l_unit);
Expand Down