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

> Without DI you are forced to write slow and difficult to maintain integration tests instead of unit tests.

Integration tests are worthwhile even if you do have unit tests. They serve different purposes.



Yes, but you keep them separate from unit tests. Unit tests should be fast to run, for quick feedback.




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

Search: