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:
- Runs your tests with a custom plugin to capture structured data
- Preserves all console output and test results
- Generates organized reports in
.3pio/runs/[timestamp]-[name]/ - 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file threepio_test_runner-0.0.1.tar.gz.
File metadata
- Download URL: threepio_test_runner-0.0.1.tar.gz
- Upload date:
- Size: 5.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc906a1dbe2131f1537dd036853e1545af93178a60b5bdcf60833f895c05d32f
|
|
| MD5 |
846d94ccb34eac8a7d647d18a56d0ef4
|
|
| BLAKE2b-256 |
dba2286b8c6f8a5c2a51cad3bfa7bbde7ff48b8ba7aaa7a0b4d55578585d3f50
|
File details
Details for the file threepio_test_runner-0.0.1-py3-none-any.whl.
File metadata
- Download URL: threepio_test_runner-0.0.1-py3-none-any.whl
- Upload date:
- Size: 6.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f615f84c2ef8b2b02ef4b4979cc9d021cae5e5411ab4051f2c2b15b13782cec9
|
|
| MD5 |
5f26d2ff2ce9e0046a3ccb1b1840bbcf
|
|
| BLAKE2b-256 |
354395907174d2d6714793dfdfebf134528326aeeea73e96deb5b35cd9ab9e73
|