rtest
Python test runner built in Rust
Decision gist · record as of 2026-08-14
Yes, if you have a medium to large test suite and can tolerate early-stage tooling. The speedups are substantial and well-documented. Install with caution if your tests depend heavily on pytest fixtures or conftest.py—the native runner doesn't support these yet, though pytest-compatible execution mode does. Not recommended for small projects where collection time is negligible, or for teams requiring production-grade stability.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Native runner does not support pytest fixtures or conftest.py; use --runner pytest for fixture-dependent tests.
- Medium install friction due to compiled wheels for multiple Python versions and platforms.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions.
last release 2026-02-20 (175 days) · last repo commit 2026-07-23 · 25 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 263,437 downloads/mo, #8,356 on PyPI
Alternatives
Verify before relying
pip install rtest
# Fast collection
rtest --collect-only
# Run with native runner
rtest --runner native
# Parallel execution
rtest --runner native -n 4- Whether native runner fixtures support is complete or still in development
- Compatibility with complex pytest plugins beyond basic parametrize/skip markers
- Whether cross-module constant resolution for @rtest.mark.cases is fully implemented
What it is and what it does
rtest is a test runner that replaces pytest's import-heavy test collection with Rust-based static AST analysis, eliminating the need to import test modules to discover tests. This yields significant speedups: 5–25x on smaller projects, and 100–200x+ on large monorepos where import overhead dominates. It offers three execution modes: fast collection-only analysis, a native runner for simple test patterns, and pytest-compatible execution that preserves pytest's fixture and conftest.py support while benefiting from rtest's faster collection.
The package is in active early development (v0.0.x) and supports Python 3.10 and later. It ships as compiled wheels across multiple platforms and Python versions. The native runner accepts @rtest.mark.cases and @rtest.mark.skip decorators, plus @pytest.mark.parametrize and @pytest.mark.skip for compatibility. Known limitations include incomplete fixtures support, inability to statically resolve truly dynamic parametrize expressions, and platform-specific path separator handling in test node IDs.
Use it for
- Speed up test collection on large monorepos where import overhead is the bottleneck
- Run tests in parallel with the native runner on projects using simple test patterns without fixtures
- Replace pytest for projects that don't rely on fixtures or conftest.py
- Accelerate CI/CD pipelines by reducing test discovery time on medium to large codebases
- Benchmark and profile test collection performance across different test suites
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you have a medium to large test suite and can tolerate early-stage tooling.
The speedups are substantial and well-documented. Install with caution if your tests depend heavily on pytest fixtures or conftest.py—the native runner doesn't support these yet, though pytest-compatible execution mode does. Not recommended for small projects where collection time is negligible, or for teams requiring production-grade stability.
Install
rtest on PyPI
Before you install
Medium install friction due to compiled wheels for multiple Python versions and platforms. Active maintenance with recent releases; project is in early development (v0.0.x) so expect breaking changes and evolving features.
Requires Python 3.10 or later. Native runner does not support pytest fixtures or conftest.py; use --runner pytest for fixture-dependent tests.
License in practice
MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions.
Quickstart
pip install rtest
# Fast collection
rtest --collect-only
# Run with native runner
rtest --runner native
# Parallel execution
rtest --runner native -n 4
Verify before relying
- Whether native runner fixtures support is complete or still in development
- Compatibility with complex pytest plugins beyond basic parametrize/skip markers
- Whether cross-module constant resolution for @rtest.mark.cases is fully implemented
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 175 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 263,437 / month, #8,356 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: RustTopic :: Software Development :: Testing |
Evidence: rtest-0.0.46-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; rtest-0.0.46-cp310-cp310-manylinux_2_34_aarch64.whl; rtest-0.0.46-cp310-cp310-win_amd64.whl; rtest-0.0.46-cp311-cp311-macosx_10_12_x86_64.whl; rtest-0.0.46-cp311-cp311-macosx_11_0_arm64.whl; rtest-0.0.46-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; rtest-0.0.46-cp311-cp311-manylinux_2_34_aarch64.whl; rtest-0.0.46-cp311-cp311-win_amd64.whl; rtest-0.0.46-cp312-cp312-macosx_10_12_x86_64.whl; rtest-0.0.46-cp312-cp312-macosx_11_0_arm64.whl; rtest-0.0.46-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; rtest-0.0.46-cp312-cp312-manylinux_2_34_aarch64.whl; rtest-0.0.46-cp312-cp312-win_amd64.whl; rtest-0.0.46-cp313-cp313-macosx_10_12_x86_64.whl; rtest-0.0.46-cp313-cp313-macosx_11_0_arm64.whl; rtest-0.0.46-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; rtest-0.0.46-cp313-cp313-manylinux_2_34_aarch64.whl; rtest-0.0.46-cp313-cp313t-manylinux_2_34_aarch64.whl; rtest-0.0.46-cp313-cp313-win_amd64.whl; rtest-0.0.46-cp314-cp314-macosx_10_12_x86_64.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “fast test runner python”
- rtestA Python test runner built in Rust that uses static AST analysis for…
- tox-uv-baretox-uv-bare is a tox plugin that replaces virtualenv and pip with uv…
- django-slowtestsIntegrates with Django's test runner to identify and report the…
Give your agent the search over MCP, or paste the wish link into any chat.
More Testing packages
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.
Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.
Install it if you want to measure test completeness or enforce coverage thresholds in your project.
pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.
Install it if you write tests for any asyncio-based code.
A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.
Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.
See also pytest-cache · pytest-asyncio-concurrent · pytest-aio · stestr · pytest-grpc · pytest-deadfixtures · pytest-pytestrail · pytest-rerunfailures · snob-lib