Skip to content

Extract get-test-data-path from get-test-file #87

@rjrudin

Description

@rjrudin

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/"),
    "//", "/")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions