get-test-file has the following logic in it:
fn:replace(
fn:concat(
cvt:basepath($test:__CALLER_FILE__), "/test-data/", $filename),
"//", "/")
It can be useful to do a cts:directory-query on everything in a test data path, but building up that path requires duplicating the above code (without a "filename").
So this ticket is asking for the following function:
test:get-test-data-path()
Which will just do the following:
fn:replace(
fn:concat(
cvt:basepath($test:__CALLER_FILE__), "/test-data/"),
"//", "/")