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

Personally, I have found that unit tests speed you up a lot, while integration tests often slow you down. In other words, if you're writing a "mock_[X]" class/function, it's probably slower than just testing with X.


Typically people refer to those by the opposite naming convention - unit tests just test one thing and mock any dependencies, while integration tests integrate multiple things and generally involve less mocking




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

Search: