-
-
Notifications
You must be signed in to change notification settings - Fork 642
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
Feature request: print subcase when an exception is thrown inside one #136
Comments
This seems reasonable! And indeed it is connected to #125 |
I haven't made progress in this regard with the default console reporter but the just released version 2.3 supports xml as the output and there you will get a much better context of where the exception was thrown from. Anyway this is still a deficit of the console reporter so this issue will remain open until I fix that. |
fixed! releasing version 2.3.5 right now. |
Just a message to thank you a lot for having fixed this. |
Description
If an exception is thrown in a SUBCASE, the logged error only contain the TEST_CASE name.
This might be related to #125
Steps to reproduce
Here's a simple program:
The output is
There is no information about which SUBCASE failed.
Extra information
SUBCASEs seems to be implemented as ifs, I'm not sure this feature can be implemented in such a way. Maybe SUBCASEs should actually set up a lambda, but that means the user needs to add a ';' at the end of each SUBCASE. Also it wouldn't work with C++ < 11.
The text was updated successfully, but these errors were encountered: