-
-
Notifications
You must be signed in to change notification settings - Fork 649
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
How to override file_line_to_stream? #369
Comments
Making As for |
Thanks. And: yes, please, also: thanks! You're doing a very good job here! |
pushed in the dev branch |
Works like a charm, at least for me. BTW, here is the overriding for IAR EWARM, running doctest-enabled simulation in
I might add some knowledge how to pass-in command-line arguments, and how to access the passed/failed status upon request. |
My IDE (IAR EWARM) needs some weird tags (
"\x01<SRCREF file="..." line=... \x01>"
,"\x01</SRCREF\x01>"
) around the file and line to produce a clickable link from console output.I could write my own reporter, which would be a clone of the console reporter (which is fine!), just to add these tags into the output stream in
file_line_to_stream()
--- or this interface could be virtual and possible to override in a derived reporter implementation.Overriding the remainder, DOCTEST_INTERNAL_ERROR, to produce a clickable link is rather easy, and superfluous. Have I overlooked more ways in which doctest prints location information?
The text was updated successfully, but these errors were encountered: