So how do you know that you are doing it right?
Here are the signs that you are on the right path:
- You are writing more tests than ever before
- Your test coverage is creeping up to > 90%
- You create a test class before creating the class under test
- You write a failing unit test before making any code changes
- Your test classes are longer (more lines) than the class under test
- You start to feel itchy when you write a line of code that is not making a test pass
- You are more confident in the code you are writing
- You are refactoring your tests
- You are not deploying and debugging every time you change the code
- You are debugging tests rather than production code