3 ms·
Remember folks, unit testing is your friend.
by plusbryan 15y ago
Remember folks, unit testing is your friend.
- hluska 15y agoI'm shocked that Dropbox didn't actually unit test their authentication method. Doesn't it seem like there is something else going on here?
- brown9-2 15y agoNo one knows that they didn't unit test these methods. Bugs can arise from the unexpected interaction of separate components also - does anyone seriously think that unit testing is a silver bullet?
- lukeschlather 15y agoWell, I think it goes to show that an automated process that attempts to log in with a random string every 10 minutes to a random account should probably be a standard feature of production. (Or maybe just to a specific account so you don't lock people out, but random would be ideal.)
- mattlong 15y agohindsight is indeed 20/20
- leftnode 15y agoWouldn't a functional test have caught this better? Ideally a unit test would use mock objects for all external resources, so it probably wouldn't have caught this. A full end to end functional test would have.
- benatkin 15y agoYes. Functional test, integration test, request test (as rspec-rails calls it). Better if it tests the production site directly, in addition to testing in a test environment.