Any chance of adding a way to register a user-defined error reporting method, instead of always throwing exception? I am wary of using exceptions to report errors (in test tools, not in production code,) since the unit under test may be poorly written and swallow an error report with a catch(…).
The reason for asking is that I'd like to add mockpp as a suggested mocking framework for my mock-less unit test system , and although exceptions will work, it will work poorly.
When I implemented disabling rtti and exceptions my main intention was to have a proof of concept. So it may not fully work (yet) as you may have in mind. But suggestions and especially patches are welcome.
greets
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Any chance of adding a way to register a user-defined error reporting method, instead of always throwing exception? I am wary of using exceptions to report errors (in test tools, not in production code,) since the unit under test may be poorly written and swallow an error report with a catch(…).
The reason for asking is that I'd like to add mockpp as a suggested mocking framework for my mock-less unit test system , and although exceptions will work, it will work poorly.
: http://crpcut.sourceforge.net
Hello,
I assume you already noticed the following :-)
http://mockpp.sourceforge.net/handbook/embedded-solution.html
When I implemented disabling rtti and exceptions my main intention was to have a proof of concept. So it may not fully work (yet) as you may have in mind. But suggestions and especially patches are welcome.
greets