-
Book Overview & Buying
-
Table Of Contents
Grails 1.1 Web Application Development
By :
While unit tests confirm that discreet units of code are performing as expected, there are areas of the code that we can't be entirely sure are working unless we integrate with some external system or resource. We would like to be sure that our objects are being persisted to, and can be read from the database, or that we have integrated a particular framework correctly. To cover these scenarios, we need to use integration tests.
Writing integration tests is often a more complicated and fraught process than unit testing. When writing integration tests, we face the following challenges:
Dependencies can be complicated to set up.
Making tests repeatable can be tricky.
With unit testing, we have the advantage of having no external dependencies, so any problems or test failures should be limited to the scope of our code. When running integration tests, we need to prepare databases, transaction managers, and other environment configuration. An error in any...
Change the font size
Change margin width
Change background colour