Skip to content

Add proof of concept of image comparison tests

Emanuele Roberto Nocera requested to merge imgcomp into master

Created by: Zaharid

This is a proof of concept for image comparison tests.

I think we should have some of these for the most important plots. The PoC uses this library:

https://github.com/matplotlib/pytest-mpl

which can be installed with conda (and should be a test requirement in the recipe).

I think I can generate the image with

pytest -k test_pdfplots --mpl-generate-path=baseline

and then test them with:

pytest -ktest_pdfplots --mpl

The task is to make all of this work in the CI and e.g. figure out if the images generated on linux and mac are similar enough to be compared like this or if we have issues with e.g. fonts that we should be aware of.

Closes #118 (closed).

Merge request reports

Loading