Skip to content

Releases: ryx2/pytest-depper

v0.2.0

23 Oct 19:44

Choose a tag to compare

v0.1.0 - Initial Release

22 Oct 20:05

Choose a tag to compare

pytest-depper v0.1.0

🎉 First public release of pytest-depper!

What is pytest-depper?

Smart test selection based on AST-level code dependency analysis. Run only the tests you need, not all the tests you have.

Features

No cache required - Works immediately on fresh branches
AST-level dependency analysis - Understands your code structure
Git integration - Automatically diffs with main branch
Pytest plugin - Use as pytest --depper
CLI tool - Standalone pytest-depper command
Transitive dependencies - Traces imports through your entire codebase

Installation

pip install pytest-depper

Quick Start

# Run only tests affected by changes
pytest --depper

# Show detailed dependency analysis
pytest --depper --depper-debug

# CLI analysis without running tests
pytest-depper --list-only

Documentation

Key Advantages

  • vs pytest-testmon: No cache required, works on fresh clones
  • vs pytest-picked: Analyzes transitive dependencies, not just direct changes
  • vs manual selection: Automated, precise, and never misses a dependency

Example

Change 8 lines in a 3000-line file with 2000 tests? pytest-depper runs only the ~20 affected tests instead of all 2000.

76x faster for typical changes!

Credits

Built with ❤️ for developers who value their time.


Star this repo if pytest-depper saves you time!
Report issues at https://github.com/ryx2/pytest-depper/issues