Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeremyschiemann/pytest-codegen
Create pytest function automatically without implementation
https://github.com/jeremyschiemann/pytest-codegen
Last synced: 25 days ago
JSON representation
Create pytest function automatically without implementation
- Host: GitHub
- URL: https://github.com/jeremyschiemann/pytest-codegen
- Owner: jeremyschiemann
- Created: 2020-08-16T20:28:46.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-23T14:15:47.000Z (over 4 years ago)
- Last Synced: 2024-11-06T00:29:56.974Z (about 1 month ago)
- Language: Python
- Size: 22.5 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-python-testing - pytest-codegen - Pytest-codegen will statically analyze your code to create pytest function stubs. (Tools)
README
# pytest-codegen
Pytest-codgen will statically analyze your code to create pytest function stubs.Built with [redbaron](https://redbaron.readthedocs.io/en/latest/), [typer](https://typer.tiangolo.com/) and [jinja2](https://jinja.palletsprojects.com/en/2.11.x/).
## Goal
First working version### Future Goals
- Create templates for tests
- More customization## Disclaimer
This tool is currently in pre-alpha/experimental phase. Usable version will be ^0.1.x## Installation
```
pip install pytest-codegen
```## Usage
Check the supported commands with
```
pytest-codegen --help
```
or if you are lazy like me
```
ptc --help
```## Suggestions & Contribution
Every suggestion and contribution is welcome!
Set everything up with [poetry](https://python-poetry.org/) and you are good to go :)
```
pip install poetry
```
```
poetry install
```## Ressources
- [pytest-codegen on pypi](https://pypi.org/project/pytest-codegen/)
- [redbaron on pypi](https://pypi.org/project/redbaron/)
- [typer on pypi](https://pypi.org/project/typer/)
- [jinja2 on pypi](https://pypi.org/project/Jinja2/)## License
This project is licensed under the terms of the MIT license.