|
Boost Users : |
Subject: Re: [Boost-users] [test] Does boost.test support mock objects?
From: eg (egoots_at_[hidden])
Date: 2011-09-03 22:35:28
On 9/2/2011 10:21 PM, Jonathon wrote:
> Hi,
>
> One facility that I really love about Google test is their mock object
> framework. It facilitates the development of tests/stub objects.
> Note that this is also delivered in easy mock and mockpp.
>
> Does anyone know if Boost.Test offers such a thing? I've looked
> through the documentation and I couldn't find anything.
>
Boost.Test does not have a mock facility built in.
You can use other mock frameworks like Google Mock - see:
http://code.google.com/p/googlemock/wiki/ForDummies#Using_Google_Mock_with_Any_Testing_Framework
I am not necessarily advocating google mock, just pointing out the
possibility.
Stackoverflow has more opinions on this very question in various posts.
Ed
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net