Testing & validation
This page is shared across plugin kinds.
Plugin repo tests (recommended primary workflow)
For plugin development, prefer a tight loop:
- edit plugin code
- run
pytest - iterate
Example (template provider repo):
python -m pip install -e core/python
python -m pip install -e "plugins/template-python-provider[dev]"
pytest plugins/template-python-provider/tests -q
Repo-level tests
From repo root:
- Core tests:
pytest core/python/tests -q - Example tests:
pytest core/python/examples/tests -qs
Markers used across repo tests:
-m openrouter(requiresOPENROUTER_API_KEY) – used by OpenRouter plugin + OpenRouter-marked examples.-m integration– integration tests that may hit real services.-m ollama– tests that hit a local Ollama instance.
Lint/format/typecheck
From repo root:
ruff check core/python/agent_core core/python/tests core/python/examples core/python/plugins
black core/python/agent_core core/python/tests core/python/examples core/python/plugins
pyright
See also: AGENTS.md.