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

How would you test, say, payment processing, in any sane way, without mocking?

How do you test failure handling code when the failure can not be reproduced in a known way by the current code base?

I agree these tools are often overused, however they do have their roles.



Yeah I'm not referring to mocking external services, which is both smart and useful. I'm referring to the practice of endotesting whereby you mock your own objects and interfaces as a means to test interactions between them.




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

Search: