O'Reilly logo

Grails in Action, Second Edition by Glen Smith and Peter Ledbrook

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. Building reliable applications

This chapter covers

  • The mechanics of running tests in Grails
  • Test types and phases
  • How to write unit tests with mocks
  • Browser-based testing with Geb

You’ve made good progress with the Hubbub application, and you’ve seen all the core elements that make up a standard Grails application. The question now is how to further develop the application while ensuring that you don’t introduce bugs—or at least as few as possible.

The answer is through testing! Throughout the first part of the book we used test cases to explain how bits of Grails work and to help you get into the testing habit. It’s time to take stock and learn more about Grails’ support for writing various tests so that your own projects ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required