Pytest-codgen will statically analyze your code to create pytest function stubs.
Built with redbaron, typer and jinja2.
First working version
- Create templates for tests
- More customization
This tool is currently in pre-alpha/experimental phase. Usable version will be ^0.1.x
pip install pytest-codegen
Check the supported commands with
pytest-codegen --help
or if you are lazy like me
ptc --help
Every suggestion and contribution is welcome!
Set everything up with poetry and you are good to go :)
pip install poetry
poetry install
This project is licensed under the terms of the MIT license.