Skip to main content

Context-optimized test runner for coding agents

Project description

3pio

A context-friendly test runner for Python projects. 3pio enhances your existing test workflow by generating structured, AI-optimized reports without changing how your tests run.

Installation

pip install threepio-test-runner

Usage

# Run pytest tests
3pio pytest

# Run specific test file
3pio pytest tests/test_utils.py

# Run with pytest options
3pio pytest -v -s tests/

# Run unittest tests
3pio python -m unittest

# Run with coverage
3pio pytest --cov=myproject tests/

Why 3pio?

When working with AI coding assistants, test output often gets lost or truncated. 3pio solves this by:

  • Preserving all test output - Never lose print statements or error traces
  • Structured reports - Each test file gets its own organized log
  • AI-friendly format - Reports optimized for LLM context windows
  • Zero config - Works with your existing pytest/unittest setup
  • Non-intrusive - Your tests run exactly as before, 3pio just captures better reports

Supported Test Frameworks

  • pytest - Full support for pytest and its plugins
  • unittest - Python's built-in testing framework
  • nose2 - Works with nose2 test runner
  • Any Python test runner - Captures output from any test command

How It Works

3pio acts as a transparent wrapper around your test runner:

  1. Runs your tests with a custom plugin to capture structured data
  2. Preserves all console output and test results
  3. Generates organized reports in .3pio/runs/[timestamp]-[name]/
  4. Maintains full compatibility with your existing test configuration

Report Structure

After running tests, find your reports in:

.3pio/runs/
└── 20240110-143022-clever-penguin/
    ├── test-run.md              # Summary report
    ├── output.log               # Complete console output
    └── logs/
        ├── test_utils.py.log    # Per-file test results
        └── test_api.py.log      # Organized by test file

Repository

For source code, issues, and documentation: https://github.com/zk/3pio

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

threepio_test_runner-0.0.9.tar.gz (8.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

threepio_test_runner-0.0.9-py3-none-any.whl (10.4 MB view details)

Uploaded Python 3

File details

Details for the file threepio_test_runner-0.0.9.tar.gz.

File metadata

  • Download URL: threepio_test_runner-0.0.9.tar.gz
  • Upload date:
  • Size: 8.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for threepio_test_runner-0.0.9.tar.gz
Algorithm Hash digest
SHA256 1ca7b5298ac1fc7dc81b9dab29b35d82ddd5117bf558bd8e5fa84dae2830ec16
MD5 f9b0b580b057ede4051d19141a1481ec
BLAKE2b-256 444875fdea92651b42463e5c2107f5c40a21e997b57672f715914bbc45f2ec8a

See more details on using hashes here.

File details

Details for the file threepio_test_runner-0.0.9-py3-none-any.whl.

File metadata

File hashes

Hashes for threepio_test_runner-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 454589b19bff7a4f0262355d650f382b59066fb72715df2a9cc4128b607fc6e2
MD5 9b28373645c0c1dd96c89703dc1c2dd2
BLAKE2b-256 57d5cfefbd863e3144e2f546ba2df9cab276f3866ad90a424f3f94e7175ea87e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page