ericmckean / google-highly-open-participation-plone

Automatically exported from code.google.com/p/google-highly-open-participation-plone
0 stars 0 forks source link

Produce a prototype of how Plone's tests can be improved by using Mock Objects #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago

Original comment by l...@gmail.com on 27 Nov 2007 at 7:01

GoogleCodeExporter commented 9 years ago

Original comment by l...@gmail.com on 27 Nov 2007 at 7:01

GoogleCodeExporter commented 9 years ago

Original comment by mw4...@googlemail.com on 23 Jan 2008 at 11:35