palantir / plottable

:bar_chart: A library of modular chart components built on D3
http://plottablejs.org/
MIT License
2.97k stars 223 forks source link

Look into automated visual testing #3129

Open CalvinFernandez opened 7 years ago

CalvinFernandez commented 7 years ago

Plotly does something really cool where they set up automated visual testing for their charts. They take a snapshot of a rendered chart and then do an exact comparison for each chart in every new build and fail if there's an unexpected difference.

Look into whether its feasible or worthwhile to set up this infrastructure.

adidahiya commented 7 years ago

We had an intern look into this in summer 2015; I do think it's worth the investment. You basically use selenium to take a screenshot and diff it with an expected baseline. I imagine there are decent libraries for managing this at this point.