Unit tests don’t guarantee that your system works

This post has been moved to my new blog, check it out!

This blog is being terminated :)

2 Responses to “Unit tests don’t guarantee that your system works”

  1. Ryan Bates Says:

    Excellent point. In many ways I find integration and functional tests are more useful than unit tests. If all you’re testing is the little bit of code in isolation it’s too easy to miss the cracks of interaction between layers. You can test that the SQL statement is what you expect, but until you actually run it on the database you don’t know if it will work or not.

  2. Elliot Smith Says:

    Amen to that. I just wrote about the same sort of thing, as it’s something which has been consuming my time for the past few weeks. We have a lot of unit tests with decent coverage; but when we started doing our acceptance tests, we came across a ton of issues that unit testing had not and could not illuminate (e.g. network timeouts, database issues). Capturing expectations about components external to the application is just as vital as unit testing in getting to a decent working system.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: