You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to be able to control the generated part of the test case name when using TEMPLATE_LIST_TEST_CASE. At present it uses the name of the type list and the index into the list. For example:
I opened a PR recently to do this; see #2537. The Catch2 test suites fails because the type names are not portable across all compilers in the CI matrix, but have I used this fork for my own projects without issues.
I would like to be able to control the generated part of the test case name when using TEMPLATE_LIST_TEST_CASE. At present it uses the name of the type list and the index into the list. For example:
With this code we end up with test cases with names like:
I would like to be able to have:
As far as I can tell the relevant code is:
Specifically:
To get the behaviour I would like would require something like:
Would you be happy with a macro such as:
So that the relevant code becomes:
Then I could put in my code something like:
Thoughts? Problems with the macro definition/usage?
If you are happy with this approach, let me know and I should be able to prepare a pull request based on the above.
The text was updated successfully, but these errors were encountered: