Latest Version https://github.com/zopefoundation/zope.testing/actions/workflows/tests.yml/badge.svg Documentation Status

This package provides a number of testing frameworks.

For complete documentation, see https://zopetesting.readthedocs.io


Provides a mixin class for cleaning up after tests that make global changes.

See zope.testing.cleanup


An HTML parser that extracts form information.

This is intended to support functional tests that need to extract information from HTML forms returned by the publisher.

See zope.testing.formparser


Support for testing logging code

If you want to test that your code generates proper log output, you can create and install a handler that collects output.

See zope.testing.loggingsupport


Logging handler for tests that check logging output.

See zope.testing.loghandler


Lets a doctest pretend to be a Python module.

See zope.testing.module


Regular expression pattern normalizing output checker. Useful for doctests.

See zope.testing.renormalizing


Provides a simple HTTP server compatible with the zope.app.testing functional testing API. Lets you interactively play with the system under test. Helpful in debugging functional doctest failures.

Python 2 only

See zope.testing.server


A simple framework for automating doctest set-up and tear-down.

See zope.testing.setupstack


A small utility for dealing with timing non-determinism

See zope.testing.wait


Support for defining doctests as methods of unittest.TestCase classes so that they can be more easily found by test runners, like nose, that ignore test suites.

See zope.testing.doctestcase

Getting started developing zope.testing

zope.testing uses tox. To start, install tox using pip install tox. Now, run tox to run the zope.testing test suite.


Indices and tables