To test my C++ project I am using GoogleTest framework. Normally I can use the following syntax to easily debug a failure:
EXPECT_TRUE(*statement*) << *debugMessage*;
When I use the macro EXPECT_NO_THROW (or ASSERT_NO_THROW) I might of course do the same, but I do not have access to the exception object that was thrown (and caught) inside the macro itself and so the debugMessage cannot tell me anything about it.
Is it possible to show information about this exception in any way?
Aucun commentaire:
Enregistrer un commentaire