Skip to content

Commit

Permalink
Update generate summary readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ConorMacBride committed Feb 2, 2022
1 parent c315776 commit 7baf58d
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,24 @@ and the tests will pass if the images are the same. If you omit the
runs, without checking the output images.


Generating a Failure Summary
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Generating a Test Summary
^^^^^^^^^^^^^^^^^^^^^^^^^

By specifying the ``--mpl-generate-summary=html`` CLI argument, a HTML summary
page will be generated showing the baseline, diff and result image for each
failing test. If no baseline images are configured, just the result images will
be displayed. (See also, the **Results always** section below.)
page will be generated showing the result, log entry and RMS of each test,
and the hashes if configured. The baseline, diff and result image for each
failing test will be shown. If **Results always** is configured
(see section below), images for passing tests will also be shown.
If no baseline images are configured, just the result images will
be displayed.

+---------------+---------------+---------------+
| |html all| | |html filter| | |html result| |
+---------------+---------------+---------------+

As well as ``html``, ``basic-html`` can be specified for an alternative HTML
summary which does not rely on JavaScript or external resources. A ``json``
summary can also be saved. Multiple options can be specified comma-separated.

Options
-------
Expand Down Expand Up @@ -301,6 +312,9 @@ install the latest version of the plugin then do::
The reason for having to install the plugin first is to ensure that the
plugin is correctly loaded as part of the test suite.

.. |html all| image:: images/html_all.png
.. |html filter| image:: images/html_filter.png
.. |html result| image:: images/html_result.png
.. |expected| image:: images/baseline-coords_overlay_auto_coord_meta.png
.. |actual| image:: images/coords_overlay_auto_coord_meta.png
.. |diff| image:: images/coords_overlay_auto_coord_meta-failed-diff.png
Binary file added images/html_all.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/html_filter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/html_result.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7baf58d

Please sign in to comment.