$npx skillfedfor your agent

pytest-find-dependencies

A pytest plugin to find dependencies between tests

Worth itPyPI UtilitiesReleased Jul 2025983.2K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pytest_find_dependencies-0.6.0-py3-none-any.whl
v0.6.0 · released 2025-07-16 · Python >=3.9 · 1 runtime deps: pytest

Yes. The plugin solves a real problem—hidden test dependencies are common and hard to find manually. It has low install friction, active maintenance, permissive licensing, no known vulnerabilities, and runs on modern Python versions. Use it if you suspect test interdependencies or want to verify test isolation before parallelizing; the runtime overhead is modest and the diagnostic value is high.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires pytest to be installed; Python 3.9 or later.
  • Low install friction with a single runtime dependency on pytest.
  • Actively maintained as of 2025-07-16 with recent commits; the repository is not archived and has received updates within the past year.

License · maintenance · safety

MIT (permissive) — MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.

last release 2025-07-16 (394 days) · last repo commit 2026-08-12 · 5 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 983,229 downloads/mo, #4,582 on PyPI

Verify before relying

pip install pytest-find-dependencies

pytest --find-dependencies

# Output shows which tests depend on others, e.g.:
# test_one.py::test_b depends on test_one.py::test_e
  • Whether the binary search approach reliably catches all test dependencies or only a subset in practice.
  • Performance impact on large test suites beyond the documented 1.5x to 2x slowdown estimates.
  • How well permanent environment changes (e.g., database state) are detected in parallel vs. serial mode.
Same gist for agents: .md · .json

What it is and what it does

pytest-find-dependencies is a pytest plugin that automates the detection of test interdependencies—situations where one test's success or failure depends on the execution of another test. Tests should ideally be independent, but in practice many codebases accumulate hidden dependencies that only surface when test order changes. This plugin runs your test suite in both forward and reverse order, then uses binary search on any failing tests to isolate the specific test causing the failure.

The plugin reports found dependencies clearly and can also flag tests that fail permanently after all tests run, indicating environmental side effects that weren't cleaned up. It integrates with pytest's command-line interface via the `--find-dependencies` flag and supports options to run tests serially, ignore specific test markers, and control exit codes. It detects pytest-xdist and disables distribution for its internal test runs to preserve ordering.

Use it for

  • Identify hidden test dependencies in a legacy test suite before refactoring or parallelizing tests.
  • Debug why tests pass in isolation but fail in a full run—pinpoint the offending test automatically.
  • Verify test cleanup: detect tests that leave permanent state changes (e.g., database records) affecting later tests.
  • Ensure test order independence before adopting parallel test runners like pytest-xdist.
  • Validate that test markers from ordering plugins (pytest-order, pytest-dependency) are working as intended.

Worth the install?

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

Worth it

Yes.

The plugin solves a real problem—hidden test dependencies are common and hard to find manually. It has low install friction, active maintenance, permissive licensing, no known vulnerabilities, and runs on modern Python versions. Use it if you suspect test interdependencies or want to verify test isolation before parallelizing; the runtime overhead is modest and the diagnostic value is high.

Install

pytest-find-dependencies on PyPI

Before you install

Low install friction with a single runtime dependency on pytest. Actively maintained as of 2025-07-16 with recent commits; the repository is not archived and has received updates within the past year.

Requires pytest to be installed; Python 3.9 or later.

License in practice

MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.

Quickstart

pip install pytest-find-dependencies

pytest --find-dependencies

# Output shows which tests depend on others, e.g.:
# test_one.py::test_b depends on test_one.py::test_e

Verify before relying

  • Whether the binary search approach reliably catches all test dependencies or only a subset in practice.
  • Performance impact on large test suites beyond the documented 1.5x to 2x slowdown estimates.
  • How well permanent environment changes (e.g., database state) are detected in parallel vs. serial mode.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
pytest
MaintenanceActively maintained 394 days since the last release
Last repo commit
First released
Downloads983,229 / month, #4,582 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: POSIX :: LinuxProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Topic :: Software Development :: Quality AssuranceTopic :: Software Development :: TestingTopic :: Utilities

Evidence: pytest_find_dependencies-0.6.0-py3-none-any.whl

Tags

Capabilities
pytest test dependency detectionfind test order dependenciestest pollution detectionpytest test isolation checkeridentify dependent teststest interdependency analysis
Topics
test-isolationtest-debugging
PyPI keywords
testingpytestdependencies

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 › “pytest test dependency detection”

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

More Utilities packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
charset-normalizer Worth it
PyPI · Utilities · released Aug 2026

Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.

permissive licensepure Python · 3.7+
1.7Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
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
Pygments Worth it
PyPI · Utilities · released Mar 2026

Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.

Install it if you need to display or transform source code.

BSD-2-Clausepure Python · 3.9+
1.3Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo

See also detect-test-pollution · pytest-order · pytest-logging · pytest-reverse · pytest-flakefinder · pytest-timestamper · pytest-randomly · pytest-error-for-skips · pytest-helpers-namespace · pytest-dependency