How do you learn to write great unit tests? Why are some unit tests good and some bad? Here I talk about 7 tips for writing great unit tests and gaining confidence in your code.
NAMES UNDERSTANDABLE 2. ISOLATION OF DEPENDENCIES 3. ONE REASON TO FAIL 4. MAKE TESTS FAST 5. INDEPENDENT OF ENVIRONMENT 6. TEST UNITS COMPLETELY 7. MAKE TESTING EASY