-
-
Notifications
You must be signed in to change notification settings - Fork 650
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 ability to capture variables from test scope #48
Comments
onqtam
changed the title
Capture variables from test scope
Add ability to capture variables from test scope
Mar 22, 2017
This is implemented in the dev branch - check out the documentation |
onqtam
added a commit
that referenced
this issue
Apr 9, 2017
… exceptions are disabled - relates #48
onqtam
added a commit
that referenced
this issue
Apr 10, 2017
… from an exception - relates #48 #23 (also see this Catch PR: catchorg/Catch2#876 )
onqtam
added a commit
that referenced
this issue
May 15, 2017
… exceptions are disabled - relates #48
onqtam
added a commit
that referenced
this issue
May 15, 2017
… from an exception - relates #48 #23 (also see this Catch PR: catchorg/Catch2#876 )
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm in the position where I have to generate random combinations of a fixed length string and then run a parser function on them and compare the result of the function with a known value. However, if the assertion fails, I don't know what was in the string that failed to be parsed.
I remember that in Catch there was a macro called
CAPTURE
or something like that. Which allowed me to see the contents of that variable in case an assertion macro failed in that scope.Is there something similar in doctest or a way to implement it? I can't seem to find anything related in the reference or tutorials.
The text was updated successfully, but these errors were encountered: