Repository navigation
Plugin API 2026 10 19
Adding a test runner or a reporter meant a pull request to Testosterone: an adapter in testo_core/frameworks/ or a reporter in testo_core/reporting/reporters/, plus its name in SUPPORTED_FRAMEWORKS or SUPPORTED_REPORTER_TYPES. The command framework covers runners that write JUnit XML, but anything else (a runner that needs flags injected, a reporter that posts to a team's own service) had no way in from outside the repository. Open-source users should be able to ship those as their own packages.
- Two entry point groups:
testo.frameworks(aFrameworkAdapterclass or factory) andtesto.reporters(aBaseReportersubclass). The interfaces are the ones the built-ins already implement, so a plugin and a built-in look the same to the engine. -
testo_core/plugins.pyowns discovery. The config loader,get_adapter(),ReporterFactoryand the ad-hoc plan builder ask it for the known names instead of reading the frozensets directly. - Built-in names always win, and the first plugin to claim a name keeps it; the rest are ignored with a warning. A plugin can add, never replace.
- Entry points are read once per process and a plugin is imported only when a stage or reporter uses it. Import errors and missing methods become a
PluginErrorthat names the package. -
testo pluginslists everything;--checkimports each plugin, which is the test a plugin author runs. -
examples/plugin/is a complete plugin (aunittestadapter that writes Allure results, ajson-summaryreporter) andtests/unit/testo_core/test_plugins.pyruns a real cycle through it.
We chose entry points over a pluggy hook system or a plugins: list of import paths in YAML: they are the standard Python mechanism, need no new dependency, and installing the package is the whole setup.
- Plugin stages have no default tier beyond
unitand receiveworkersunchanged; the plugin decides what it means. - The API's ad-hoc endpoint keeps its
Literalof built-in frameworks so the OpenAPI schema and generated frontend types stay static. Plugin frameworks run through cycles. - The adapter and reporter interfaces are now public API: changing them is a breaking change for plugins and needs a major version.
Usage: Command Reference § Plugins.
Generated from docs/Specs & ADRs/Plugin API - 2026-10-19.md. Edit it there; changes made in the wiki are overwritten.
Architecture
CLI Commands
Processes & Guides
- CI-CD Pipeline Setup
- E2E Harness Operations Guide
- GitLab Pages Demo
- Publishing Docker Images
- Publishing to Artifactory
- Publishing to PyPI
Prompts & Snippets
Roadmap & Strategy
Specs & ADRs
- Architecture Consolidation - 2026-10-06
- BehaveX Reports - 2026-10-21
- Command Adapter and JUnit Import - 2026-09-25
- Delta Comparison Policy
- Docs Site - 2026-10-19
- Docs Vault and Wiki Sync - 2026-10-07
- GitHub Action PR Comment - 2026-10-19
- Interview Readiness Fixes - 2026-10-07
- Library Packaging
- Open Source Features - 2026-10-19
- Phase 3 Delta Comparison Engine Plan
- Phase 3 Unified Dashboard Plan
- Phase 4 BYOK and Failure Analysis
- Phase 5 UI Redesign - Cycles-First Navigation
- Playwright Adapter - 2026-10-19
- Plugin API - 2026-10-19
- Specs & ADRs
- Repository Pattern - Database-Agnostic Refactor
- UI Restyle - 2026-10-19
Testing Workflows
Vault