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

> never mock the code that is under your control if you can help it.

This is just nonsense. It'd effectively mean you only had integration tests. While they are absolutely fantastic they are too slow during development.



Had a colleague tell me I was testing wrong because Fowler doesn't like that way of testing - https://martinfowler.com/articles/mocksArentStubs.html




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

Search: