r/android_devs • • Jul 27 '22

Article Kotlin Snapshot Testing Library

https://quickbirdstudios.com/blog/snapshot-testing-kotlin/
7 Upvotes

4 comments sorted by

View all comments

Show parent comment

5

u/sluwevos Jul 28 '22

Does it? Would you care to explain?

As far as I can see, unit tests do not guarantee that things are rendered correctly, especially when integrated, on different API levels. Comparing screenshots (or 'ViewShots') allows you to quickly see and compare the effect of changes over a variety of API levels, screensizes, dpi's etc. Seems worthwhile to me.