Hi all. I am a developer with 12 experience doing TDD in different languages (Java, PHP, Python, Perl), but haven't done C++ in 20 years.
I just started using Google Test and am slowly warming up to it (it's pretty different from the xUnit flavors I have used in other languages).
One thing that I find myself craving is a complete callstack of where the error or runtime error occured. This is a pretty much standard feature of all other xUnit frameworks I have used.
For failed assertions, I am able to provide a callstack "simile" by putting SCOPED_TRACE() calls at strategic places in my test code and custom assertions.
But that doesn't work for runtime errors, because I would have to sprinkle SCOPED_TRACE() all over the place in my production code (for example, at the beginning of every method or at least every important method), and that would pollute my production code too much.
I was wondering if people have tricks or best practices for dealing with that situation?
For example, Boost.Test has a command line option to tell the framework to invoke the debugger upon uncaught exceptions which are not assertion exceptions. Is there a similar option for GoogleTest?
And speaking of command line options, where can I find a list of all the available options? I have beeen googling for 10 mins now, and although I find references and explanations of specific options like --gtest_filter, I haven't found a page that explains all the available options.
Thx.
Alain Desilets
Owner, Alpaca Technologies
alpacatechnologies.com