Skip to content

Latest commit

 

History

History
76 lines (50 loc) · 2.18 KB

README.rst

File metadata and controls

76 lines (50 loc) · 2.18 KB

pytest-memory-usage

See Build Status on Travis CI See Build Status on AppVeyor

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.