PubMob session: Introduction to Approval Testing

Get started testing sooner with approvals tests

Instead of writing a lot of assertions, Approval Testing gives you another approach. You print the state of the object you want to check, and verify it against a previously approved version. Any difference fails the test. It's a great technique for example when the existing code lacks test cases and has poor structure, making adding unit tests challenging. You might call that "legacy code."

Upcoming sessions: 2020-11-20T14:30Z, 2020-12-18T14:30Z

Session lead: Emily Bache

This is an introduction to Approval Testing. You will come away with an understanding of its basic mechanisms. You’ll learn how to write your own tests using the open source ‘Approvals’ library.