@@ -71,7 +71,7 @@ If the directory does not exist, it will be created. The directory will
71
71
be interpreted as being relative to where you are running ``pytest ``.
72
72
Once you are happy with the generated images, you should move them to a
73
73
sub-directory called ``baseline `` relative to the test files (this name
74
- is configurable, see below). You can also generate the baseline images
74
+ is configurable, see below). You can also generate the baseline image
75
75
directly in the right directory.
76
76
77
77
With a Hash Library
@@ -89,6 +89,20 @@ or via the ``hash_library=`` keyword argument to the
89
89
``@pytest.mark.mpl_image_comapre `` decorator.
90
90
91
91
92
+ Hybrid Mode: Hashes and Images
93
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
94
+
95
+ It is possible to configure both hashes and baseline images. In this scenario
96
+ the hashes will be compared first, and the baseline images used if the hash
97
+ comparison fails.
98
+
99
+ This is especially useful if the baseline images are external to the repository
100
+ with the tests in, and can be accessed remotely. In this situation if the hashes
101
+ match the baseline images wont be retrieved, saving time and bandwidth. Also it
102
+ allows the tests to be modified and the hashes updated to reflect the changes
103
+ without having to modify the external images.
104
+
105
+
92
106
Running Tests
93
107
^^^^^^^^^^^^^
94
108
@@ -101,6 +115,15 @@ and the tests will pass if the images are the same. If you omit the
101
115
``--mpl `` option, the tests will run but will only check that the code
102
116
runs without checking the output images.
103
117
118
+
119
+ Generating a Failure Summary
120
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
121
+
122
+ By specifying the ``--mpl-generate-summary=html `` CLI argument a HTML summary
123
+ page will be generated showing the baseline, diff and result image for each
124
+ failing test. If no baseline images are configured, just the result images will
125
+ be displayed.
126
+
104
127
Options
105
128
-------
106
129
0 commit comments