Agile testing with Grails, Spock, and GebBill Schneider
schedule 2 years agoSold Out!
Grails is already a great platform for agile software development. Developers using Grails can iterate rapidly, without the burdens of tedious Java EE syntax and server restarts. Yet the best part of using Grails in an agile environment may be the testing frameworks. In this session I will demonstrate two testing frameworks in Grails: Spock and Geb.
Spock brings BDD-like syntax (given, when, then) to tests, with support for running the same tests against different inputs and outputs. Geb simplifies writing functional (UI automation) tests, as a layer on top of the Selenium Web Driver. Geb makes UI automation more accessible to developers by embracing closures and jQuery-style selectors. Geb integrates fully in the Grails build cycle; the coverage report combines coverage across unit, automation, and functional tests. A team using both Geb and Spock can choose the best form of testing for each story, for example, isolating business logic with unit tests, and covering controller classes through end-to-end UI tests.