Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mortenfc opened this issue Jan 27, 2025 · 0 comments
Open

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

mortenfc opened this issue Jan 27, 2025 · 0 comments

Comments

@mortenfc
Copy link

mortenfc commented Jan 27, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant