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.


  1. If you write code, write tests
  2. Don’t get stuck on unit testing dogma
  3. Embrace unit testing karma
  4. Think of code and test as one
  5. The test is more important than the unit 
  6. The best time to test is when the code is fresh
  7. Tests not run waste away
  8. An imperfect test today is better than a perfect test someday
  9. An ugly test is better than no test 
  10. Only fools use no tools
  11. 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

Popular posts from this blog

deep dive into Material UI TextField built by mui

angular js protractor e2e cheatsheet

react-router v6.4+ loaders, actions, forms and more