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
Test should be independent and isolated from each other so that they can be run in any order and still produce same result.
I thought we all know this. I was solving an online test were am to validate name,email, ID e.t.c with some constraints given on each field without using a validation library.
some unit tests were written which I can clearly see but can't modify(made sense) but if I choose to validate email it's unit test will not pass until I validate name, and this happens as long as you dont follow the order, this doesn't make sense.
my conclusion, it's either this is intentional or someone has done a bad job. I think this is a bad job since there is no instruction that gives any clue about this.
what do you think about this ?
rant