Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
![](/static/devrant/img/pipeless-devrant-banner-white.png)
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
kamen69632yImagine you have an API with a lot of shit going on; if you do a somewhat major change and you don't have tests, you can't possibly know what you might have broken in the process unless you test everything manually.
-
Voxera116412y@kamen without unit tests you need more manual testing and also be more careful.
And my experience from 20+ years as full time developer is that very very few projects have tests that really cover everything.
Even projects with tests are usually either focusing on some areas or some level of code coverage but even with TTD I find that there can exist edge cases that are not covered due to not understanding the code/problem.
Even 100% coverage is no guarantee that you cover all possible cases.
But tests help catch some regression and in the best case they catch all expected cases.
So yes tests help, but you can go without, its just less extra protection. -
aadilp12872yUnit tests force you to write better, cleaner code. If you're not writing testable code, your codebase will eventually turn into a mess that even you wouldn't want to work with.
-
salshamz72yBro 1 thing to say from where these type of fucking minded dumbass people come 😂🤣 btw too much funny
-
@AnxiousADHDGuy @salshamz
Found it in this YouTube Video which was made by an American.
I’m not Indian, stop the tribalism!!
https://youtu.be/Jv2uxzhPFl4 -
hjk10157492yWell as long as you stop at "Your code can fail"
At my previous job they had a mentality to not waste time with it. So it took me many years to get into it. If you want it to change let me know perhaps I can give you some practical tips. -
voodoo145662yI've seen many projects with unmaintainable "unit tests". Which is - maybe - worst than not writing unit tests at all.
I haven’t written a single test in my life 🥴😵💫
rant