You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/contribute.rst
+18-4Lines changed: 18 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -99,26 +99,40 @@ The `environment.yml` file already contains the packages required to run the tes
99
99
100
100
- `pytest <https://docs.pytest.org>`__ to run the tests
101
101
- `pytest-cov <https://github.com/pytest-dev/pytest-cov>`__ and `coveralls <https://github.com/TheKevJames/coveralls-python>`__ to track lines covered by the tests
102
-
102
+
- `pytest-mpl <https://pytest-mpl.readthedocs.io/en/stable/>`__ to perform image comparisons
103
103
104
104
To run the primary test suite and generate coverage report, navigate to the parent `eomaps` directory and run:
105
105
106
106
.. code-block:: console
107
107
108
-
python -m pytest -v --cov eomaps
108
+
python -m pytest -v --cov eomaps --mpl
109
+
110
+
Some of the tests compare exported images with a set of baseline-images to ensure stable image exports and to catch
111
+
potential issues that are not detected by the code based tests.
112
+
113
+
If changes require an update of the baseline images, you have to invoke
114
+
`pytest-mpl <https://pytest-mpl.readthedocs.io/en/stable/>`__ with the `mpl-generate-path` option:
0 commit comments