-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
Doctest test cases with a comma in the name are skipped #224
Comments
Hello, It seems to me doctest doesn't support escaping I will release a workaround but its not bulletproof. If you really need this feature request it from doctest developer at first. Thanks for the report though. |
Hi Mate, Thanks for the quick feedback. When running the test binary from the command line I get:
Both tests are run and none are skipped. So I though this must be an issue specific to the VS Code Extension. |
Yeah, I see that. For parallelization the extension directly calls the test by name and since the |
Wow, that was fast! Thanks for the update! |
Checklist
Describe the bug
Test cases containing a comma in the name are skipped.
To Reproduce
Use those test cases:
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include <doctest/doctest.h>
TEST_CASE("example")
{
CHECK(true);
}
TEST_CASE("example,")
{
CHECK(true);
}
Open the "Test" view from the Menu Bar. Click on the play icon at the top to run all tests.
Expected: all tests are run.
Observed: the second test with a comma in the name is skipped.
Log (optional but recommended)
The text was updated successfully, but these errors were encountered: