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
-
Awlex18275348d@azuredivay No, a "no idea what I'm doing, but that code looks like it could work"-case
-
Voxera11585347d@ostream no, tests are for those that know how to write good tests ;)
In a bigger project it helps prevent regressions in code and personally I use them in a TDD role when designing more complex logic like lexer/parsers or complex validation logic. -
Awlex18275347d@jestdotty The answer is to use the previous test as a reference, understand what it does and add a single assert statement, instead of doing this
-
Awlex18275347d@jestdotty No, the part where you understand what you're doing is more important to me. I'm busy myself and don't want to review code that doesn't make sense every time I'm being asked for advice or a merge request becomes "ready"
I thought I had seen everything, but today a coworker tried to call one test case from another and asked me if that is an okay thing to do.
rant