@@ -97,18 +97,22 @@ create or replace type body ut_tfs_junit_reporter is
9797 l_tests ut_varchar2_list;
9898 begin
9999 for i in 1 .. a_suite.items.count loop
100- if a_suite.items(i) is of(ut_logical_suite) then
101- print_suite_results(treat(a_suite.items(i) as ut_logical_suite), a_suite_id, a_nested_tests);
100+ if a_suite.items(i) is of(ut_suite_context) then
101+ print_suite_results(treat(a_suite.items(i) as ut_suite_context), a_suite_id, a_nested_tests);
102+ elsif a_suite.items(i) is of(ut_suite) then
103+ print_suite_results(treat(a_suite.items(i) as ut_suite), a_suite_id, a_nested_tests);
104+ elsif a_suite.items(i) is of(ut_logical_suite) then
105+ print_suite_results(treat(a_suite.items(i) as ut_logical_suite), a_suite_id, a_nested_tests);
102106 end if;
103107 end loop;
104108 --Due to fact tha TFS and junit5 accepts only flat structure we have to report in suite level only.
105- if a_suite.self_type ='UT_SUITE_CONTEXT' then
109+ if a_suite is of(ut_suite_context) then
106110 for i in 1 .. a_suite.items.count loop
107111 if a_suite.items(i) is of(ut_test) then
108112 ut_utils.append_to_list( a_nested_tests,(add_test_results(treat(a_suite.items(i) as ut_test))));
109113 end if;
110114 end loop;
111- elsif a_suite.self_type ='UT_SUITE' then
115+ elsif a_suite is of(ut_suite) then
112116 for i in 1 .. a_suite.items.count loop
113117 if a_suite.items(i) is of(ut_test) then
114118 ut_utils.append_to_list( a_nested_tests,(add_test_results(treat(a_suite.items(i) as ut_test))));
0 commit comments