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
-
siksik2408y@LeFlawk unit tests are tests to ensure that a small piece of code/logic (f.e. a method) is working as expected, either because it transforms data correctly or calls the appropriate dependencies -
@LeFlawk
It's code which tests code.
Ever found yourself reloading your app, clicking three buttons to create a user, updating a property, then find out there's a bug... try to fix it, start over, reloading your app, creating a user?
Or do you have a checklist with pages/features to check, before a deploy?
Unit tests and functional tests automate that human task of clicking buttons, and pretty much every language and framework has a well established testing library. -
s3id0n11528y@LeFlawk unit tests run the code you're testing in various that a human might use it to find bugs
Related Rants

Two unit tests, no integration tests.
all unit tests passing
This is my life now...
undefined
testing
unit tests
dev life