On the Effectiveness of Snapshot Testing: An Empirical Study
Shun FujitaSatoru TomizawaYutaro KashiwaBin LinHajimu Iida
Shun Fujita
Satoru Tomizawa
Yutaro Kashiwa
Bin Lin
Hajimu Iida
+5
This paper presents a large-scale empirical study of snapshot testing's effectiveness, analyzing 340 GitHub repositories and surveying 60 practitioners. The central finding is that combining snapshot tests with traditional tests significantly boosts code coverage, achieving a median statement coverage of 86.7%, and that the two approaches are highly complementary, exercising distinct code regions. Furthermore, suites including snapshot tests detected 1.3 times more mutants than traditional-only suites. Practitioners value snapshot testing for ease of implementation and regression prevention, but cite reviewing large result sets and managing false positives as key hurdles. These insights guide strategic integration and future improvement of snapshot testing.

arXiv ·
· October 21, 2026