Releases: ryx2/pytest-depper
v0.2.0
v0.1.0 - Initial 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-depperQuick 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-onlyDocumentation
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