November 2024
Intermediate to advanced
300 pages
7h 12m
English
Beyond the ZOM cases you’ve covered, you could brainstorm edge cases and exception-based tests. You’ll explore doing that in later chapters.
As you write tests and continue to re-visit/re-read the code you’re testing, you’ll think of additional tests you should write. In fact, as you write the code yourself in the first place—before trying to write tests for it—think about and note the cases you’ll need for that code.
Add the cases you think of to a test list to remember to write them. Cross them off as you implement or obviate them. You can do this on paper, in a notepad file, or even in the test class itself as a series of comments. (Perhaps in the form of TODO comments, which IDEs like IntelliJ ...
Read now
Unlock full access