-
Book Overview & Buying
-
Table Of Contents
Grails 1.1 Web Application Development
By :
Unit tests are easier to write, easier to maintain, faster to run, and are far less likely to have complicated side effects than either integration or functional tests. For this reason, it generally makes more sense to think of having high unit test coverage as your initial testing goal.
Integration tests are useful when verifying that a particular database query is performing correctly. These sorts of checks simply cannot be performed by unit tests, and relying on functional tests is even more difficult, as you do not have direct access to the data that is returned from the query.
Functional tests are great for performing end-to-end tests by making sure that all layers of the application are interacting with each other. We can also benefit from implementing automated functional tests for each new piece of functionality in order to help find regressions further on down the development road. When creating functional tests, there is always a balance to be struck between the...
Change the font size
Change margin width
Change background colour