[openstack-dev] [nova] Do we have some guidelines for mock, stub, mox when writing unit test?
davanum at gmail.com
Sun Nov 10 23:14:39 UTC 2013
Feedback from some of the Nova sessions were,
"If you are writing new tests, try to use mock."
"Writing new tests to cover more code (esp drivers) is more preferable
to any effort that just converts from mox to mock"
On Sun, Nov 10, 2013 at 11:25 PM, Noorul Islam K M <noorul at noorul.com> wrote:
> Jay Lau <jay.lau.513 at gmail.com> writes:
>> I noticed that we are now using mock, mox and stub for unit test, just
>> curious do we have any guidelines for this, in which condition shall we use
>> mock, mox or stub?
> There is already a blueprint  in Nova project to replace Mox with mock.
> Also it has a link to ML thread .
>  https://blueprints.launchpad.net/nova/+spec/mox-to-mock-conversion
>  http://lists.openstack.org/pipermail/openstack-dev/2013-July/012484.html
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
Davanum Srinivas :: http://davanum.wordpress.com
More information about the OpenStack-dev