Skip to content

Group parametrized test by base name before '/' #461

Open
@mortenfc

Description

I want this:
EXE_NAMES -> FIXTURES -> TESTCASEBASENAME_BEFORE'/' -> TESTNAMEAFTER'/'IFANY

And it should be able to run debugger on the tree node ESTCASEBASENAME_BEFORE'/'

I can't get this to work, and reading the source code is not very doable to me.

Best approximation of the idea I've come up with is this

"gtest": {
        "testGrouping": {
          "groupByExecutable": {
            "label": "${baseFilename}",
            "description": "${relDirpath}/",
            "groupByRegex": {
              "regexes": ["(.*?)/(.*)"],
              "label": "${match[1]}",
              "groupByRegex": {
                "regexes": ["(.*?)/(.*)"],
                "label": "${match[2]}"
              }
            }
          }
        }
      }

But it doesn't group by test case base name before -> full test case name before '/'. And it can't resolve match variables.
It seems to group all test cases with '/' inside the executable to 1 node inside another node.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions