Skip to content

Commit

Permalink
Merge pull request #1870 from mdboom/doc/making-tests
Browse files Browse the repository at this point in the history
Testing documentation isn't clear about which files to copy
  • Loading branch information
pelson committed Mar 29, 2013
2 parents 372fd71 + c6a0780 commit bd6a172
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions doc/devel/testing.rst
Expand Up @@ -122,10 +122,15 @@ it::
The first time this test is run, there will be no baseline image to
compare against, so the test will fail. Copy the output images (in
this case `result_images/test_category/spines_axes_positions.*`) to
the `baseline_images` tree in the source directory (in this case
`lib/matplotlib/tests/baseline_images/test_category`) and put them
under source code revision control (with `git add`). When rerunning
the tests, they should now pass.
the correct subdirectory of `baseline_images` tree in the source
directory (in this case
`lib/matplotlib/tests/baseline_images/test_category`). Note carefully
the `.*` at the end: this will copy only the images we need to include
in the `git` repository. The files ending in `_pdf.png` and
`_svg.png` are converted from the `pdf` and `svg` originals on the fly
and do not need to be in the respository. Put these new files under
source code revision control (with `git add`). When rerunning the
tests, they should now pass.

There are two optional keyword arguments to the `image_comparison`
decorator:
Expand Down

0 comments on commit bd6a172

Please sign in to comment.