I believe there is an issue in getpath expression in ut_xunit_reporter.
CREATE OR REPLACE PACKAGE ut_test.ut_generate_pk_id_api IS
When running that it reports a classname in xunit as : 'alltest' rather than 'alltests.ut_gen_pk_id_api'
Would not be better to replace
return substr(a_path_with_name, 1, instr(a_path_with_name, '.' || a_name) - 1);
The text was updated successfully, but these errors were encountered:
You are referring to a use-case where test package name is like '%test procedure name%'
I think your regex pattern was is missing
select a_path_with_name, regexp_substr(a_path_with_name, '(.*)\.' ||a_name||'$',1,1,'',1), substr(a_path_with_name, 1, regexp_instr(a_path_with_name, '\.' || a_name||'$') - 1), substr(a_path_with_name, 1, instr(a_path_with_name, '.' || a_name) - 1) from (select 'alltests.ut_generate_pk_id_api.ut_generate_pk_id' a_path_with_name, 'ut_generate_pk_id' a_name from dual);
Maybe we can just use:
It is a bug indeed.
Can you fix it and create a PR for it?