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

Add grouping executables by regex #388

Open
1 task done
pJunger opened this issue Jun 15, 2023 · 3 comments
Open
1 task done

Add grouping executables by regex #388

pJunger opened this issue Jun 15, 2023 · 3 comments
Labels
enhancement New feature or request test-grouping

Comments

@pJunger
Copy link

pJunger commented Jun 15, 2023

Checklist

Is your feature request related to a problem? Please describe.
I have multiple related executables that share part of a name, but the names are not exactly the same. Additionally they contain useless prefixes & suffixes that are not needed in the label.
The binaries have a format like this: ${useless_prefix}_${common_name}_${some_differing_suffix}_${useless_suffix}
e.g. zzz_my_lib_unittest_0, zzz_my_lib_unittest_1 zzz_my_lib_componenttest_0.

Describe the solution you'd like
Something like groupByExecutableRegex where I could group/merge only by the common part that's relevant.

Describe alternatives you've considered
For my specific usecase those tests also share a common path segment for the source files, so a mergeByLabel option for groupBySource would work as well.

@matepek
Copy link
Owner

matepek commented Jun 17, 2023

If your prefixes and suffixes had a fixed length then indexing would help too.
Like:

        "testGrouping": {
          "groupByExecutable": {
            "mergeByLabel": true,
            "label": "${baseFilename[3:6]}"
          }
        }

This selects part of the string like: "0123456789.exe" -> "3456"

Would this work for you?

@pJunger
Copy link
Author

pJunger commented Jun 17, 2023

Unfortunately only the prefix is fixed size, everything else can vary.

@matepek
Copy link
Owner

matepek commented Jun 18, 2023

I see.

@matepek matepek added the enhancement New feature or request label Jun 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request test-grouping
Projects
None yet
Development

No branches or pull requests

2 participants