Skip to content

v0.1.0 - Initial Release

Choose a tag to compare

@ryx2 ryx2 released this 22 Oct 20:05
· 4 commits to main since this release

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