Energy-Visualizer / Energy-Visualizer/mexer

Consider creating snapshot tests for visuals

Open
#37 0 comments 0 reactions 0 assignees View on GitHub
testing/QA
Dominant language
Python
Stars
0
Forks
0
Avg merge
3h 47m
Merged PRs (30d)
1

Description

Snapshot tests are a form of unit testing that can work well for graphical output. I've used them extensively for R packages like ggformula. Most of the functions in the package produce graphical output and R's testthat system supports snapshot tests and provides and easy to way to compare and approve/reject any time the graphic produced by a given test changes.

It looks like https://pypi.org/project/pytest-snapshot/ might provide something similar for Python. (Needs more investigation.)

These work primarily as regression tests (to make sure things don't break as you modify code), but they could also be used for things like #20 and #35 by not approving a snapshot until the plot has been verified as correct.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.