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
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Unit tests are important and definitely worthwhile, but the thing missing from most explanations is that you really have to design your code to be unit tested from the start.
Unit testing a bunch of code not split up into units and not written with unit testing in mind can certainly be done, but as you're finding out, it often feels like you're trying to crowbar things in everywhere to not really test much useful.
If feasible, I'd suggest going back and refactoring the bits you need to to ensure you can fit your tests in nicely. -
FuckTS1965y@AlmondSauce yeah our project was not written with unit testing in mind, this means I might have to refactor maybe half the code...idk what to do at this point.
-
@heyheni
I might even agree with it. Because, you know, fuck UT. University of Texas, University of Tennessee , unreal tournament, Utah, use taxes, uma Thurman. Fuck the lot of em.
Related Rants
-
cdrice105"You gave us bad code! We ran it and now production is DOWN! Join this bridgeline now and help us fix this!" ...
-
MoboTheHobo35My Friend: Dude our Linux Server is not working anymore! Me: What? What did you do? My friend: Nothing I swe...
-
tommy15Right now someone at Google is coding something useless for us to laugh at on April Fools.
My brain hurts from trying to figure out this unit testing crap. Is it just me or is it really a struggle to test your front-end code? I'm using jest and enzyme to test our React app but complicated parts of code with multiple state changes or calling props is making my life a living hell. I mean I usually just debug by console logging everything and it works lol...but my fucking boss has forced me into writing this unit testing crap. FML.
rant
react
jest
ffs
enzyme
unit testing
fml