glue-viz / glue-viz/glue-plotly

Visual testing

Open
#37 2 comments 0 reactions 0 assignees View on GitHub
CI enhancement
Dominant language
Python
Stars
3
Forks
8
PR merge metrics
No merged PRs in 30d

Description

This is a reminder to myself that we should set up some image-based testing of our outputs as part of the testing suite. Testing that the Plotly traces have the right properties goes a long way, but we should have some way to check that the final product looks correct.

Plotly supports [static image export using Kaleido](https://plotly.com/python/static-image-export/#interactive-vs-static-export). We could use this to generate static output (e.g. a PNG, rather than interactive HTML) and compare to reference images. The HTML pages also support the ability to save a PNG - we should check whether this just calls the Kaleido static export, or is something different (and if the latter, see if we can activate that in a test).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.