Reports test memory usage, and adds memory bounds
This Pytest plugin was generated with Cookiecutter along with @hackebrot's Cookiecutter-pytest-plugin template.
- 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
- psutil
You can install "pytest-memory-usage" via pip from PyPI:
$ pip install pytest-memory-usage
- TODO
Note: teardown_class memory_usage is not reported.
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.
Distributed under the terms of the GNU GPL v3.0 license, "pytest-memory-usage" is free and open source software
If you encounter any problems, please file an issue along with a detailed description.