showyourwork / showyourwork

A workflow for reproducible and open scientific articles

Home Page:https://show-your.work

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add visual comparison tests

dfm opened this issue · comments

We don't currently test how the output PDFs actually get rendered. Instead, we only test that the build runs successfully. It would be great to add some tests to make sure that our changes don't break the expected formatting. Perhaps we could use something like matplotlib's compare_images test function to get this to work: https://github.com/matplotlib/matplotlib/blob/fbe7a446a60e603e44a7a6fbdd77f2be39d6796c/lib/matplotlib/testing/compare.py#L384