The Way of Testivus - the tao of unit testing
One of my teammates shared this with the team the other day: The Way of Testivus
I love it and want to share it.
I love it and want to share it.
- If you write code, write tests
- Don’t get stuck on unit testing dogma
- Embrace unit testing karma
- Think of code and test as one
- The test is more important than the unit
- The best time to test is when the code is fresh
- Tests not run waste away
- An imperfect test today is better than a perfect test someday
- An ugly test is better than no test
- Only fools use no tools
- Good tests fail
Tests prove the code works.
Tests catch bugs.
Tests provide a "safety net" so you can make changes to and refactor code and be confident it still works.
Comments
Post a Comment