Talk 35:00

Supercharge your Tests with Snapshot Testing

Unit tests are a fundamental defence line to prevent subtle bugs from sneaking into our code base. The problem is that writing them can sometimes feel like a tedious, repetitive and error-prone chore.

That's when snapshot testing comes into play. It makes an alluring promise: completely rid the developer of the boring task of having to manually write and manage unit tests' assertions! While it may sound too good to be true, there's no magic trick and we'll discover the ins and outs of snapshot testing in Gleam: what it is, how it works and, most importantly, how to use it effectively.