Mockpp - Mock Objects for C++

My blog has moved. You can view this post at the following address: http://www.osherove.com/blog/2004/12/7/mockpp-mock-objects-for-c.html
Published Tuesday, December 07, 2004 2:02 AM by RoyOsherove
Filed under:

Comments

Wednesday, December 08, 2004 11:53 AM by Ewald Arnold

# re: Mockpp - Mock Objects for C++

I was amazed to read that parts of the docs seem more interesting to review than the code itself. But, yes, it is true, the macro part *was* a pain. That is the reason why you should avoid them or be very careful. The problem with confusing error messages also applies to templates. If you don't like it, the only possibility is to avoid both of them or better avoid C/C++ entirely.

Writing manual mocks is the usual case for me as well. But there are also frequently situations where it is better to use a framework that covers certain tasks in a consistent manner.
There is no big use in reinventing wheels, especially if you have to understand all the other wheels.
Friday, December 17, 2004 10:39 AM by TrackBack

# Why you're missing the point if you use a framework to generate mock objects for you...

<a href="http://weblogs.asp.net/rosherove/">Roy Osherove</a> <a href="http://weblogs.asp.net/rosherove/archive/2004/12/07/276023.aspx">links to</a> <a href="http://mockpp.sourceforge.net/">Mockpp</a> a mock object framework for C++ and comments on how the framework is painful to use (and it looks like it was painful to write...) He concludes that he's getting on just fine writing his mocks manually... In my experience you'd miss a lot of very useful learning and design work if you didn't write the mocks manually...