Tests are a way to explicitly set expectations about code. Good test coverage is a safety net that allows you to refactor code with more courage. Writing unit tests forces you to think about units and how the responsibility should be spent between them, making your code more modular and easier to maintain.
Table of contents
What are unit testsHow unit tests help youBuild up scaffoldingSet up mockingKeep a structureTest-driven developmentMissing testsHow about you?1 Comment
Sort: