$npx skillfedfor your agent

pytest-beartype-tests

Pytest plugin that applies @beartype to every collected test function.

With conditionsPyPI TestingReleased Apr 2026139.9K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pytest_beartype_tests-2026.4.26-py3-none-any.whl
v2026.4.26 · released 2026-04-26 · Python >=3.11 · 2 runtime deps: beartype, pytest

Yes, if you want automatic runtime type-checking on test functions with minimal setup. Install friction is low and the plugin is actively maintained. However, be aware this is a temporary workaround for functionality expected in pytest-beartype 0.3.0—plan to migrate when that release arrives. The project is very new with minimal adoption, so edge cases may not be well-tested.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.11 or later; the plugin auto-registers via pytest11 entry point with no configuration needed.
  • Low install friction with only two runtime dependencies (beartype and pytest).
  • Active maintenance with a recent commit on 2026-08-13, though the project is new (first release 2026-04-19) and has minimal adoption signals (2 stars).

License · maintenance · safety

permissive license (permissive) — MIT License permits unrestricted use, modification, and distribution with only attribution required—no restrictions on commercial or proprietary use.

last release 2026-04-26 (110 days) · last repo commit 2026-08-13 · 2 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 139,866 downloads/mo, #11,285 on PyPI

Verify before relying

# Install
pip install pytest-beartype-tests

# In your test file, just write normally with type hints:
def test_example(x: int) -> None:
    assert x > 0

# Run pytest; the plugin auto-registers and applies beartype to all test functions
pytest test_example.py
  • Whether the plugin works with pytest fixtures and parameterized tests beyond basic function signatures.
  • Performance overhead of applying beartype to every test function in large test suites.
  • Compatibility with other pytest plugins that also modify test collection or execution.
  • Whether this plugin will be superseded by pytest-beartype 0.3.0 as documented, and on what timeline.
Same gist for agents: .md · .json

What it is and what it does

pytest-beartype-tests is a minimal pytest plugin that wraps every collected test function with beartype's runtime type-checking decorator. It catches type violations in test signatures and any locally-typed variables inside test bodies at runtime, without requiring manual decorator application to each test.

The plugin auto-registers via pytest's entry point system and requires no configuration. It is explicitly positioned as a temporary workaround until pytest-beartype 0.3.0 is released with native support for this functionality. The package depends on beartype and pytest, both of which are standard in Python testing workflows.

Use it for

  • Catch type mismatches in test function parameters before test logic runs, surfacing contract violations early.
  • Validate locally-typed variables within test bodies to ensure test code itself respects its own type hints.
  • Add runtime type safety to test suites without manually decorating every test function with @beartype.
  • Detect when test fixtures or parametrized inputs violate expected types before assertions are evaluated.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you want automatic runtime type-checking on test functions with minimal setup.

Install friction is low and the plugin is actively maintained. However, be aware this is a temporary workaround for functionality expected in pytest-beartype 0.3.0—plan to migrate when that release arrives. The project is very new with minimal adoption, so edge cases may not be well-tested.

Install

pytest-beartype-tests on PyPI

Before you install

Low install friction with only two runtime dependencies (beartype and pytest). Active maintenance with a recent commit on 2026-08-13, though the project is new (first release 2026-04-19) and has minimal adoption signals (2 stars).

Requires Python 3.11 or later; the plugin auto-registers via pytest11 entry point with no configuration needed.

License in practice

MIT License permits unrestricted use, modification, and distribution with only attribution required—no restrictions on commercial or proprietary use.

Quickstart

# Install
pip install pytest-beartype-tests

# In your test file, just write normally with type hints:
def test_example(x: int) -> None:
    assert x > 0

# Run pytest; the plugin auto-registers and applies beartype to all test functions
pytest test_example.py

Verify before relying

  • Whether the plugin works with pytest fixtures and parameterized tests beyond basic function signatures.
  • Performance overhead of applying beartype to every test function in large test suites.
  • Compatibility with other pytest plugins that also modify test collection or execution.
  • Whether this plugin will be superseded by pytest-beartype 0.3.0 as documented, and on what timeline.

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.11
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
beartypepytest
MaintenanceActively maintained 110 days since the last release
Last repo commit
First released
Downloads139,866 / month, #11,285 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaFramework :: PytestLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Evidence: pytest_beartype_tests-2026.4.26-py3-none-any.whl

Tags

Capabilities
pytest type checking pluginruntime type validation testsbeartype pytest integrationtest function type enforcementpytest type annotations
Topics
type-checkingpytest-plugintesting-tools
PyPI keywords
beartypepytesttype-checking

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 › “runtime type validation tests”

  • pytest-beartype-testsA pytest plugin that automatically applies runtime type-checking via…
  • ensureensure provides literate assertion helpers for validating conditions…
  • panderaPandera provides a flexible API for validating dataframe-like objects…

Give your agent the search over MCP, or paste the wish link into any chat.

More Testing packages

pluggy Worth it
PyPI · Libraries · released May 2025

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.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

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.

MITpure Python · 3.10+
1.1Bdownloads / mo
virtualenv Worth it
PyPI · Libraries · released Aug 2026

virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.

MITpure Python · 3.9+
532.9Mdownloads / mo
coverage Worth it
PyPI · Testing · released Aug 2026

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.

permissive licensepure Python · 3.10+
335.8Mdownloads / mo
pytest-asyncio Worth it
PyPI · Testing · released May 2026

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.

Apache-2.0pure Python · 3.10+
275.9Mdownloads / mo
pytest-json-ctrf Worth it
PyPI · Testing · released Jul 2026

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.

MITpure Python · 3.8+
273.0Mdownloads / mo

See also beartype · PyTestArch · pytest-item-dict · pytest-describe · pytest-retry · pytest-json · pytest-cache · pytest-isort · pytest-json-report · MonkeyType