![]() ![]() Snapshot tests are not as costly to write and maintain as standard UI tests, and much faster to run, allowing faster feedback for developers.Īccording to the numbers reported in the book "Building Mobile Apps at scale - 39 Engineering Challenges", snapshot tests are more widely used than UI tests by a lot of big companies: ![]() On the other hand, snapshot tests focus on the look of the view in a certain state. On one hand, standard UI tests focus on testing view interactions and navigation to the right screens. It is also worth mentioning that snapshot tests are not meant to replace UI tests. If they differ, the test fails, passes otherwise. They are a special type of UI tests that inflate a view, take a screenshot of it, and compare it to an already stored image taken as reference. Snapshot testing (also called screenshot testing) has been in the Android world for a while, since 8th October 2015, when Facebook open sourced the first version of their snapshot testing library.
0 Comments
Leave a Reply. |