Description |
plone.app.testing provides tools for writing integration and functional tests for code that runs on top of Plone. It is based on plone.testing. If you are unfamiliar with plone.testing, the concept of layers, or the zope.testing testrunner, please take a look at the the plone.testing documentation. In fact, even if you are working exclusively with Plone, you are likely to want to use some of its features for unit testing.
In short, plone.app.testing includes:
A set of layers that set up fixtures containing a Plone site, intended for writing integration and functional tests.
A collection of helper functions, some useful for writing your own layers and some applicable to tests themselves.
A convenient layer base class, extending plone.testing.Layer, which makes it easier to write custom layers extending the Plone site fixture, with proper isolation and tear-down.
Cleanup hooks for zope.testing.cleanup to clean up global state found in a Plone installation. This is useful for unit testing.
|