Skip to content

eli-b/pytest-memory-usage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Reports test memory usage, and adds memory bounds

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages