Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Wouldn'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.


Yes. 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: