DEV Community

Cover image for Writing Tests

Posted on

Writing Tests

I have been spending some time looking around on the forums and have found that a lot of people talk about learning to implement creating tests for their code as one of the things they whish they started learning sooner. I am still fairly new to programming and a majority of the time naively just look for the code to have the outcome I'm looking for without testing. Although that's definitely not best practice and was wondering if anybody had any resources or tips on how to learn and improve writing tests for your code.

Top comments (2)

jonrandy profile image
Jon Randy 🎖️

It's not 100% necessary. I've been writing code for 38 years (26 professionally), and have written automated tests extremely rarely.

hannudaniel profile image
Hannu-Daniel Goiss

writing tests is essential to have working and maintainable code.