Skip to main content

agency-pytest-agent-reporter

A pytest plugin by Agency.io that replaces the default terminal reporter with compact, agent-friendly output.

Standard pytest output is verbose and token-heavy. This plugin strips it down to the signal an AI agent actually needs: a dot per passing test, a concise failure block per failing test, and a summary that tells the agent exactly how much it just read.

Install

pip install agency-pytest-agent-reporter

The plugin is auto-discovered by pytest via the pytest11 entry point. No configuration required.

Output format

All passing

...........................................................................

73 passed (report size: 74 chars)

Failures

..F..F.F...

FAILED tests/test_math.py::test_addition
AssertionError: expected 4, got 5
tests/test_math.py:12

FAILED tests/test_math.py::test_subtraction
AssertionError: expected 0, got -1
tests/test_math.py:18

FAILED tests/test_auth.py::test_login_invalid_password
ValueError: invalid credentials
tests/test_auth.py:44

8 passed, 3 failed (report size: 213 chars)

Mixed outcomes

.s..F...

FAILED tests/test_api.py::test_timeout
TimeoutError: request exceeded 5s limit
tests/test_api.py:91

6 passed, 1 failed, 1 skipped (report size: 97 chars)

Why

When an AI agent runs your test suite it reads the output to understand what broke and what to fix next. The default pytest reporter includes full tracebacks, decorative separators, file headers, timing breakdowns, and colour codes — most of which add tokens without adding meaning.

This plugin gives the agent:

  • Location — exact file and line number of the failure
  • Reason — the exception type and message, nothing more
  • Scale — the report size field tells the agent how much context it just consumed

Requirements

  • Python 3.8+
  • pytest 7.0+

Licence

MIT — see LICENSE

Metadata

Release files for agency-pytest-agent-reporter 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agency-pytest-agent-reporter 0.1.0
File Size Uploaded Provenance Actions
agency_pytest_agent_reporter-0.1.0.tar.gz 15.7 kB With provenance Details for agency_pytest_agent_reporter-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agency-pytest-agent-reporter 0.1.0
File Interpreter ABI Platform Actions
agency_pytest_agent_reporter-0.1.0-py3-none-any.whl Python 3 none any Details for agency_pytest_agent_reporter-0.1.0-py3-none-any.whl

Total release size: 21.1 kB

Release files / agency_pytest_agent_reporter-0.1.0.tar.gz

Download URL agency_pytest_agent_reporter-0.1.0.tar.gz
Size 15.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7c0c800692229b9876db047a60d519da41d3c998c65fa361c46775a817533a3b
BLAKE2b-256 checksum
How to use checksums
2016c72fc62bdcd6fa9cdfbdd796e57d0ae3551110d1c9844a966a4f96f391b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 27, 2026.

Transparency log

Release files / agency_pytest_agent_reporter-0.1.0-py3-none-any.whl

Download URL agency_pytest_agent_reporter-0.1.0-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b63e3027cc154ab4ac4c22751b4f719342a5715d1ed2badb6760f90081778e90
BLAKE2b-256 checksum
How to use checksums
df6069223d85684e8154d539a31a064bfd8c0e4751efa04e34ff47df41efdc59
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 27, 2026.

Transparency log

Security for agency-pytest-agent-reporter 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for agency_pytest_agent_reporter-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page