◐ Shell
clean mode source ↗

New snapshot tests by hansthen · Pull Request #2144 · python-visualization/folium

A framework for performing easy regression tests.

My usual workflow for testing issues is as follows

  1. create a small program to reproduce an issue
  2. perform the fixes
  3. use the reproduction scenario to verify that the issue is gone

I also created a github test workflow for these snapshots. The snapshot tests create screenshots which are then compared against earlier screenshots which are stored in revision control. On failure both the new screenshot and a visual difference is uploaded for easy comparison.

This was originally written using playwright and streamlit, but I found it easier to make the screenshots directly.