Why using Integration tests instead of unit tests is a bad idea?

Integration tests tell you whether it’s working. Unit tests tell you what isn’t working. So long as everything is working, you “don’t need” the unit tests – but once something is wrong, it’s very nice to have the unit test point you directly to the problem. As you say, they serve different purposes; it’s good to have both.

To directly address your subject: integration tests aren’t a problem, aren’t the problem. Using them instead of unit tests is.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)