- Improve Logging Configuration: don't modify root logger by @theOehrly in #182
- Improve error reporting when test raises an exception by @ConorMacBride in #193
- MNT: Compat with pytest 8.1 by @pllim in #219
- Added support for EPS, PDF, and SVG image comparison by @astrofrog in #194
- Started implementing support for deterministic figure output by @astrofrog in #196
- Add missing CLI and INI options for a consistent API by @astrofrog in #181
- Avoid using
py.path
by @eerovaher in #207 - Allow using
-p no:legacypath
withpytest
>= 7 by @eerovaher in #213
- Add initial Sphinx docs by @ConorMacBride in #174
- Add documentation on avoiding
PytestReturnNotNoneWarning
by @ConorMacBride in #185 - Add RTD config by @ConorMacBride in #195
- Migrate docs from
README.rst
to website by @ConorMacBride in #199 - Set deterministic to True for vector graphics and warn about change to True in future for PNG by @astrofrog in #197
- Verify class-based testing configurations produce the expected results by @ConorMacBride in #175
- Update testing and CI for Matplotlib v3.6 by @ConorMacBride in #184
- Upgrade for tox 4 by @ConorMacBride in #191
- Upgrade CI package versions by @ConorMacBride in #215
- Test wheel with 3.11 until
python-dateutil
is updated for 3.12 by @ConorMacBride in #217 - Fix unclosed test files by @ConorMacBride in #222
Full Changelog: https://github.com/matplotlib/pytest-mpl/compare/v0.16.1...v0.17.0
- Fix tests which exit before returning a figure or use
unittest.TestCase
by @ConorMacBride in #171
- Rename default branch to
main
by @ConorMacBride in #169
Full Changelog: https://github.com/matplotlib/pytest-mpl/compare/v0.16.0...v0.16.1
-
Make summary log message about test results in general instead of failures by @neutrinoceros in #148
-
Add support for classes with pytest 7 by @ConorMacBride in #164
-
Note that this change necessitated a minor breaking change for figure tests within classes only, and the following will need to be done:
-
- Hash library test names will need to be regenerated/updated to include the class name.
-
- If the undocumented
mpl-use-full-test-name
ini option is enabled, the the baseline images will need to be regenerated, or have their filename updated to include the class name.
- If the undocumented
- Improve parametrized test names in HTML summaries by @ConorMacBride in #165
- Pin tox environment
mpl35
to matplotlib 3.5.1 by @ConorMacBride in #162 - [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #167
- Improve
tests/subtests
by @ConorMacBride in #163
Full Changelog: https://github.com/matplotlib/pytest-mpl/compare/v0.15.1...v0.16.0
- Add test for image shape mismatch and fix bug by @ConorMacBride in #145
Full Changelog: https://github.com/matplotlib/pytest-mpl/compare/v0.15.0...v0.15.1
- Remove Python 2 from package classifiers by @dopplershift in #137
- Downloadable hash library in HTML summary by @ConorMacBride in #138
- No need to warn when falling back to other URL by @pllim in #139
- Automatically update changelog in the repo after release by @Cadair in #143
Full Changelog: https://github.com/matplotlib/pytest-mpl/compare/v0.14.0...v0.15.0
- Add
--mpl-results-always
flag which disables removing of test images for - tests which pass. Test images are also stored and generated for hash tests
- when a baseline dir is also provided. [#108]
- When generating a HTML summary page, the
--mpl-results-always
flag is - automatically applied. [#131]
- Add a
--mpl-generate-summary=json
option which saves a JSON summary of the - image comparison results. [#127]
- Add a significantly improved HTML summary page, and rename the old simple
- summary page to
basic-html
. [#128] - Various bugfixes, test improvements and documentation updates [#134]
- Ensure all test files are included in the sdist. [#109]
- Print hash for new figure tests. [#111]
- Do not error if a baseline image can not be retrieved when using figure hashes. [#118]
- Allow generation of hash library and testing against hash library simultaneously. [#121]
- Fix specification of required Python version in setup.cfg. [#122]
- Fix passing a https url for baseline images from the CLI. [#89]
- Added
--mpl-baseline-relative
option to specify baseline images relative to the test path. [#96] - Add option to do comparisons against a json library of sha256 hashes. [#98]
- Drop support for matplotlib 1.5 and Python < 3.6. [#100]
- Add support for generating a HTML summary of test faliures. [#101]
- Add support for falling back to baseline image comparison if hash comparison fails. [#101]
- Improve error message if image shapes don't match. [#79]
- Properly register mpl_image_compare marker with pytest. [#83]
- Drop support for Python 3.5 and earlier, and Matplotlib 1.5. [#87]
- Improve error message when baseline image is not found. [#76]
- Update compatibility with pytest 3.6. [#72]
- Only close figures if they are a valid Matplotlib figure. [#66]
- Improve tests to not assume pytest executable is called py.test. [#65]
- Make sure local matplotlib files are completely ignored. [#64]
- Fix compatibility with Matplotlib 2.1. [#54]
- Allow baseline_dir to be comma-separated URL list to allow mirrors to
- be specified. [#59]
- Make sure figures get closed even if not running with the --mpl
- option, and only close actual Matplotlib Figure objects. [#60]
- Fixed use of mpl_image_compare on methods of test classes that also
- use setup_method. [#51]
- Make it possible to specify the directory in which to put the results
- from the tests using --mpl-results-path. [#39]
- Only import Matplotlib if the plugin is actually used. [#47]
- Make sure figures are closed after saving. [#46]
- Allow the backend to be set on a per-test basis. [#38]
- If test name contains slashes (normally from parameters in
- parametrized tests), replace with _. [#50]
- Properly define dependencies in setup.py. [#32]
- Added
style
andremove_text
options. [#20] - Properly support parametrized tests. [#24]
- Minor fixes to detection of remote baseline directories.
- Minor improvements to documentation.
- Add support for remote baseline images. [#18]
- When providing two conflicting options, warn instead of raising an
- exception. [#19]
- Changed default tolerance from 10 to 2. [#9]
- Added
tox.ini
. - Improvements to documentation
- Added globally-configurable baseline directory with the
--mpl-baseline-dir
option. [#8]- Added
baseline_dir
andfilename
options in decorator. - Improvements to documentation
- Initial version