zope.testrunner
Zope testrunner script.
Decision gist · record as of 2026-08-14
Yes, if you are working within the Zope ecosystem or need test layer support and advanced filtering. The package is actively maintained, has low install friction, and supports current Python versions. However, verify the ZPL-2.1 license terms for your use case, and consider whether its layer-based organization and command-line interface fit your testing workflow better than pytest or unittest alone.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Source code must be importable from the test path (install with pip install -e .
- or equivalent).
License · maintenance · safety
ZPL-2.1 (unclear) — Licensed under ZPL-2.1 (Zope Public License 2.1), but license treatment is marked unclear in the metadata. Verify the actual license terms before use in proprietary or restricted-license projects.
last release 2026-07-30 (15 days) · last repo commit 2026-07-30 · 3 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 116,870 downloads/mo, #12,190 on PyPI
Alternatives
Verify before relying
pip install zope.testrunner
zope-testrunner --test-path=path/to/your/source/tree
# Or in code:
import unittest
from zope.testrunner import runner
runner.run(unittest.TestLoader().discover('tests'))- Whether the unclear license treatment affects commercial use or redistribution
- Performance characteristics when running tests in parallel across large suites
- Compatibility with modern pytest ecosystem and pytest plugins
What it is and what it does
zope.testrunner is a flexible test runner designed for Python projects that need more control over test organization and execution than the standard unittest runner provides. It discovers and runs unittest.TestCase tests and doctests, and organizes them into layers—groups of tests that share setup and teardown code executed once per layer rather than per test. The runner supports filtering tests by package, module, or name pattern; grouping slow tests into levels; measuring coverage; profiling; and running tests in parallel.
The package is typically used in buildout-based projects via zc.recipe.testrunner, which generates a test script, or installed directly into a virtualenv and invoked from the command line. It expects tests to live in a tests subpackage or module within your source tree, following standard naming conventions. It integrates with zope.exceptions and zope.interface for error handling and interface support, and provides a rich set of command-line options for controlling test discovery, verbosity, debugging, and output formats including XML reports.
Use it for
- Run tests organized into layers with shared setup/teardown to avoid redundant initialization across test groups
- Filter and run specific tests by package, module, or name pattern without modifying code
- Measure test coverage and profile test execution to identify slow or resource-intensive tests
- Debug test failures interactively with post-mortem debugging enabled via --pdb
- Generate XML test reports for CI/CD integration and test result tracking
- Run tests in parallel across multiple processes to speed up large test suites
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are working within the Zope ecosystem or need test layer support and advanced filtering.
The package is actively maintained, has low install friction, and supports current Python versions. However, verify the ZPL-2.1 license terms for your use case, and consider whether its layer-based organization and command-line interface fit your testing workflow better than pytest or unittest alone.
Install
zope-testrunner on PyPI
Before you install
Low install friction; pure Python wheel with only two runtime dependencies (zope.exceptions and zope.interface). Actively maintained with a release 15 days ago; supports current Python versions from 3.10 through 3.14.
Requires Python 3.10 or later. Source code must be importable from the test path (install with pip install -e . or equivalent).
License in practice
Licensed under ZPL-2.1 (Zope Public License 2.1), but license treatment is marked unclear in the metadata. Verify the actual license terms before use in proprietary or restricted-license projects.
Quickstart
pip install zope.testrunner
zope-testrunner --test-path=path/to/your/source/tree
# Or in code:
import unittest
from zope.testrunner import runner
runner.run(unittest.TestLoader().discover('tests'))
Verify before relying
- Whether the unclear license treatment affects commercial use or redistribution
- Performance characteristics when running tests in parallel across large suites
- Compatibility with modern pytest ecosystem and pytest plugins
Package facts
| License | ZPL-2.1 unclear |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packageszope.exceptionszope.interface |
| Maintenance | Actively maintained 15 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 116,870 / month, #12,190 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleFramework :: Zope :: 3Intended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Libraries :: Python ModulesTopic :: Software Development :: Testing |
Evidence: zope_testrunner-8.3-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “python test runner”
- zope.testrunnerA test runner for Python projects with support for test layers,…
- stestrstestr is a parallel test runner for Python unittest suites that…
- nose2nose2 is a test runner that extends Python's unittest framework with…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also zope.testing · zope.testbrowser · html-testRunner · zope.interface · zope.exceptions · unittest-xml-reporting · xmlrunner · zope.component · Zope · zope.contentprovider