DEV Community

Discussion on: Me: "I tested and it works, why do I have to write tests?"

Collapse
 
starswan profile image
Stephen Dicks

Writing (automated) tests starts with one small step - the desire to write them. If you can't state precisely what your code is mesnt to do (by writing a test) how can you even start coding? Once you have written a few, you will start to notice that your features get bounced by QA less often - and a 'virtuous cycle' starts.
Writing tests is a habit, which takes practice. You could try practicing on your personal projects.