Mock Objects are special unit testing tools that mock other objects. In Plone,
we tend to write
"integration" tests more often than "unit" tests because of various
interdependencies between
components. For example, many tests depend on CMF "tools" or parts of the
content type
framework.
By using Mock Objects (e.g. mocker from http://labix.org/mocker), tests can be
smaller, faster and
better isolated.
The task: Take a set of Plone integration tests (those using PloneTestCase) and
demonstrate how
they can be made faster and better isolated by using a mock objects library.
Produce a short tutorial
on this, and submit it to http://plone.org/documentation/tutorial (you will
need to sign up for a
plone.org account).
Original issue reported on code.google.com by optil...@gmail.com on 19 Nov 2007 at 10:49
Original issue reported on code.google.com by
optil...@gmail.com
on 19 Nov 2007 at 10:49