O'Reilly logo

Metaprogramming Elixir by Chris McCord

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Deciding What to Test

Your next step is deciding what needs to be tested. Entire books are written on this subject, and the answers vary. We’ll review how to effectively test your while macro and ways to make assertions around stateful execution. It’s important to avoid agonizing over what should be tested, how much, and whether you’re abiding by a particular testing acronym. There’s a handful of prominent testing methodologies and opinionated camps. Whether you’re practicing test-driven development or red-green-refactor, or simply writing regression tests, the end result is the same. Choose a testing style that fits your mental workflow and keeps you happy. For some, that’s TDD; for others, like me, it’s prototype-driven development followed ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required