DEV Community

Discussion on: Why Do You Write Tests?

Collapse
 
vlence profile image
Victor Basumatary

Also, as a side note, when I first started writing tests I wrote tests for the sake of writing tests. I don't know, you just feel better than everyone else. But then I stopped because my fingers started to hurt and it was just tiring really. Point I want to make is that now if I write tests it's just to be sure that my program does what it's supposed to do. I don't care so much if an individual function or class does something wonky as long as the program overall behaves correctly. I think it's impossible to have a misbehaving function or class in a correct program but I haven't really written that many programs anyway.