RSS | Module Info | Add a review of Test-MockObject

4 out of 4 found this review helpful:

Test-MockObject (1.09) *****

Excellent stuff, really useful when writing decent test scripts. For code that relies on external systems, mocking up whatever objects it uses to communicate with them makes in-depth, reliable testing easy.

David Precious - 2008-08-21 15:42:50
Was this review helpful to you?  Yes No

3 out of 3 found this review helpful:

Test-MockObject (1.08) ****

This is a good idea and a good implentation with a few exceptions. This module is easy to use and good documentation.

Exceptions:

I cannot mock out methods that conflict with real Test::MockObject methods such as remove, mock, set_true, set_false, etc.

There is no next_call like method for class methods.

William T - 2007-11-22 20:06:40
Was this review helpful to you?  Yes No

6 out of 6 found this review helpful:

Test-MockObject (1.06) ***

Test::MockObject is a great idea, mostly well executed.

When you really get into a jam, testing something very tricky or unusual, it is the veritable knight in shining armor for your testing script. As a concept and for _most_ of its coding it scores a natural 5.

But it suffers from two points, for which I remove 2 points :)

Firstly, it makes use of UNIVERSAL::can and UNIVERSAL::isa. The subject of these two modules is extremely sensitive, and in particular the author and I are the most vocal of those on either side of the (mostly) religious argument on this.

But since this score is opinion-based, I'm taking off a point for insisting on using them, without the option to disable. They modify some of the most core functions in Perl to act differently, which causes action at a distance, and I've been bitten before a couple of times by code (generally very deep or magic code) acting differently just because Test::MockObject was LOADED (without even using it).

Secondly, I'm removing a point because I think the move to up the version to 1.00 is premature. I'd still consider it late beta quality.

I find I can still poke holes in this module and find bugs fairly regularly and fairly easily.

That's not to slight the author at all, who is always quite responsive to fixing the bugs. But I still think bugs are too easy to find to call to consider it production grade, given the advanced magic it is trying to do.

I guess I'd just like to see someone spend half a day or so _intentionally_ trying to break this module with corner cases before we moved it to production versioning.

Because as much as I appreciate the bug fixes, it would be nice if I wasn't able to find them so easily.

Adam Kennedy - 2006-05-23 09:47:17
Was this review helpful to you?  Yes No

2 out of 3 found this review helpful:

Test-MockObject (1.00) *****

This was the perfect tool to help test the upcoming HTML::Template::Plugin::Dot module, which allows chained accessor calls to be referenced in a template, like TT does.

We needed to test lots of method calls, but not for any particular module. Making generic fake objects was very handy and fast with this module.

Mark Stosberg - 2005-08-06 11:07:49
Was this review helpful to you?  Yes No

1 out of 2 found this review helpful:

Test-MockObject (0.14) *****

I couldn't think of a better interface for mock objects.

The documentation is exceptionally superb, and the module itself is very usable too.

???? ???'?? - 2004-08-01 03:42:25
Was this review helpful to you?  Yes No


the camel