Deciding What to Test

Learn how to effectively test our macros by deciding what to test and what not to test.

Our next step is to decide what needs to be tested. Entire books are written on this subject, and the answers vary. We’ll review how to effectively test our while macro that we created in the section Custom Language Constructs of Chapter 3. We will also explore ways to make assertions around stateful execution. It’s important to avoid agonizing over what we should be test, how much, and whether we’re abiding by a particular testing acronym.

Get hands-on with 1200+ tech skills courses.