DEV Community

Discussion on: The Dev.to-Community's Opinion about Unit-Tests

Collapse
 
elisabethhuhn profile image
Elisabeth Huhn

I think the reason senior level coders are less likely to unit test is because we developed our coding style prior to testing being in vogue. And it's hard to change your go to style. Regardless of what we say are our reasons

Collapse
 
kayis profile image
K

Probably.

To me it still feels like a chore, but I wish I had an aha-moment that would change this, hehe.

Collapse
 
nateous profile image
Nate

Try practicing TDD on something that isn't just a CRUD app. That was a huge hurdle for me at first. Why do I need to test that I got the data!?! It wasn't until I started writing code that manipulated things that I understood how unit tests can help.