The Psychology of Code Testability The Psychology of Code Testability

Writing Unit Tests That Withstand Changes to the Code

Can you write the test before the code? If you write the test first, it will probably be able to survive changes to the code. Misko shows how if you approach unit testing after the fact you will write completely different tests than if you write them beforehand.
Get Unlimited Access Now