-
Couldn't load subscription status.
- Fork 11
Open
Description
Testing visual output is a complex art... much trickier than most testing, mainly because of the fuzzy nature of what constitutes a "pass". I want to discuss best practices for visual testing in Julia... not what people do now, but rather what we should do. There are a few issues which we need good solutions for:
- How fuzzy should the comparison be? This was the main focus of the initial version(s) of VisualRegressionTests (VRT), but still requires thought. Some images will match almost exactly, others will only be similar. Ideally we have a method to fine-tune the fuzziness of each test in a semi-automated way.
- Where are the reference images stored? Some options:
- In another github repo. This is what I currently do, that repo is PlotReferenceImages.jl. For tests to work, one must install that repo. For travis I clone it as part of a setup script.
- Bundled with the repo we are trying to test. I started with this, and the size of the repo exploded. (see package has a large filesystem footprint Plots.jl#264)
- Uploaded somewhere. But... where? And can it easily be version controlled?
- How do we properly match reference images to the tagged releases? Should the images be tagged in tandem? (but what if we are testing many packages with the same image repo?) Should we maintain a directory structure with the version info? (this is what I do for Plots)
schneiderfelipe
Metadata
Metadata
Assignees
Labels
No labels