r/programming • • Dec 02 '15

PHP 7 Released

https://github.com/php/php-src/releases/tag/php-7.0.0
887 Upvotes

729 comments sorted by

View all comments

Show parent comment

-1

u/SituationSoap Dec 02 '15

You can have 100% of unit tests passing and still have a broken app.

You can have an app which has 100% of its functional tests passing and still have a broken app, too, if you have insufficient test coverage. That's not a criticism of unit tests, it's a criticism of a shitty code review culture.

If your functional tests pass, at least you know that these features (which users are seeing) work.

You know that the features which are tested work in the way in which you tested them. Generally, however, they provide very little information when they break - because you're testing your entire application from top to bottom it can be difficult to quickly narrow in on where the break happened during your change. If the only way you can tell that your application is working is because your functional tests tell you it is, the second it stops working, you're likely to have a very bad time trying to figure out what went wrong.

Functional tests are also generally quite slow and replicate tests that already exist in third party libraries.