How to make testing a habit?

It’s one thing to know how to write tests. It’s another thing to actually write tests consistently as a normal part of your work.

I found this chapter on “How to make testing a habit” from Jason Swett’s book on Rails testing quite helpful.