-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Cannot pass a test name with special characters via an input file #1767
Comments
Try updating the single header file by executing /scripts/generateSingleHeader.py |
Same with names like |
@amitherman95 How is the single header relevant here? This is with the latest version of Catch2, I just grab the latest source, build, and run SelfTest.exe. |
Oh I see, I'll check it out |
I'm also experiencing this. Commas in test case names break stuff. This used to work in older versions of Catch (at least, it worked in v2.2.3). Now, with v2.9.2, it's causing issues. I do note that when I search through the v.2.9.2 catch.hpp file, there is one part that says:
I wonder if that's the problem, or if it's doing something else. For now I'm just going to avoid allowing commas in test case names. Colons and hyphens seem okay. I can't show the specific code I'm running unfortunately. |
Update: Semicolons also seem okay. For now I'll replace commas in test names with semicolons then. |
I found the cause of the problem, will upload PR later in the day |
That should fix the problem |
This is fixed in master now. |
Thanks a lot for the quick fix! |
For the first, I'll have to think about it a bit -- I prefer to output human readable names to outputting round-trippable name (and the For the second, I cannot think of more right now, but it is important to note that |
I can't seem to pass the name of a test with special characters via an input file, specifically the one from CmdLine.tests.cpp:
--list-test-names-only
outputsTest with special, characters "in name
, which does not allow to run the test:I'd expect
or
to work, but they don't:
The text was updated successfully, but these errors were encountered: