Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Your answer is a good reminder that unit tests need not to be "pure" to be useful! Commented Mar 5, 2020 at 18:07
  • 1
    But the more complex they get, you might have to rethink portions of your design. A unit test exposes everything a person needs to keep straight in their brain when they read your code. Commented Mar 6, 2020 at 14:15
  • @BerinLoritsch yes! I’d also say that unit tests help make your code readable. Commented Mar 7, 2020 at 4:25