Release History

v1.6.0 (2024-04-18)

Features - 1.6.0

  • Add a new –fail-on-increase option that fails a test with the limit_memory marker if it uses more memory than its last successful run. (#91)

  • Use aggregated capture files, reducing the amount of temporary disk space required in order to run tests. (#107)

  • Add a new current_thread_only keyword argument to the limit_memory and limit_leaks markers to ignore all allocations made in threads other than the one running the test. (#117)

Bug Fixes - 1.6.0

  • Fix the generation of histograms when the tests performed zero-byte allocations. (#113)

v1.5.0 (2023-08-23)

Features - 1.5.0

  • Add a new limit_leaks marker to check for memory leaks in tests. (#45)

  • Support passing --trace-python-allocators to memray to track all Python allocations. (#78 and #64)

v1.4.1 (2023-06-06)

Bug Fixes - 1.4.1

  • Fix long test names with xdis (#68)

v1.4.0 (2022-12-02)

Features - 1.4.0

  • Allow to run tests marked with memray markers without having to provide “–memray” in the command line. (#57)

  • Add two new options that allow to customize the ammount of frames in allocation tracebacks as well as including hybrid stack traces. (#58)

Bug Fixes - 1.4.0

  • Fix pytest raising pytest.PytestReturnNotNoneWarning from test decorated with memray markers. (#60)

v1.3.2 (2022-11-30)

Bug Fixes - 1.3.2

  • Make the plugin compatible with pytest-xdist

v1.3.1 (2022-11-14)

Bug Fixes - 1.3.1

  • Declare 3.11 support

  • Fix incompatibility with the flaky plugin

v1.3.0 (2022-08-21)

Features - 1.3.0

v1.2.0 (2022-05-26)

Features - 1.2.0

  • Allow specifying the prefix used for -memray-bin-path dumps via the -memray-bin-prefix (and if specified and file already exists will be recreated) - by @gaborbernat. (#28)

Improved Documentation - 1.2.0

  • Fix documentation links to point from Gitub Pages to readthedocs.org - by @gaborbernat. (#12)

  • Update examples in configuration and add -memray-bin-path - by @gaborbernat. (#26)

  • Fix minimum python version in documentation from 3.7 to 3.8 - by @ChaoticRoman. (#30)

v1.1.0 (2022-05-17)

Features - 1.1.0

  • Report memory limit and allocated memory in longrepr - by @petr-tik. (#5)

  • Allow passing --memray-bin-path argument to the CLI to allow persisting the binary dumps - by @gaborbernat. (#10)

  • Release a pure python wheel - by @gaborbernat. (#11)

  • Switch build backend from setuptools to hatchling - by @gaborbernat. (#12)

Bug Fixes - 1.1.0

  • Causes built-in junit-xml results writer to fail - by @petr-tik. (#3)

Improved Documentation - 1.1.0

  • Move documentation from Github Pages to readthedocs - by @gaborbernat. (#20)

v1.0.0 (2022-04-09)

  • Initial release.