pytest-memory-usage
Reports test memory usage, and adds memory bounds
This Pytest plugin was generated with Cookiecutter along with @hackebrot's Cookiecutter-pytest-plugin template.
Features
- Reports the memory usage of each test
- Plots the memory usage of the test suite
- Calls gc.collect() when the memory usage passes the soft memory limit
- Terminates the test suite when the hard memory limit
Requirements
- psutil
Installation
You can install "pytest-memory-usage" via pip from PyPI:
$ pip install pytest-memory-usage
Usage
- TODO
Note: teardown_class memory_usage is not reported.
Contributing
Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.
License
Distributed under the terms of the GNU GPL v3.0 license, "pytest-memory-usage" is free and open source software
Issues
If you encounter any problems, please file an issue along with a detailed description.