tryke
Tryke is a fast Python test runner with zero runtime dependencies, per-assertion diagnostics, and a clean decorator-based API.
Highlights
- Watch mode
- Native
asyncsupport - Fast test discovery
- In-source testing
- Support for doctests
- Client/server mode for fast editor integrations
- Pretty, per-assertion diagnostics
- Filtering and marks
- Changed mode (like pytest-picked)
- Concurrent tests
- Soft assertions
- JSON, JUnit, Dot, and LLM reporters
Getting started
Write a test.
from tryke import expect, test, describe
def add(a: int, b: int) -> int:
return a + b
with describe("add"):
@test("1 + 1")
def test_basic():
expect(1 + 1).to_equal(2)
Run your tests.
Installation
See the installation documentation.