Skip to content
Peter Schneider-Manzell edited this page Jun 12, 2014 · 16 revisions

Introduction

This project contains examples how to test a Grails 2.4.0 app with Spock.

Unit tests

Integration tests

  • Integration tests with Spock: Services

Functional tests

Coming soon

Running the tests

  1. Checkout the source
  2. Make sure you have Grails 2.4.0 installed (Or use the grails wrapper provided)
  3. run grails test-app unit:spock to execute all unit tests based on spock
  4. run grails test-app integration:spock to execute all integration tests based on spock
  5. run grails test-app functional:spock to execute all integration tests based on spock (Per default the test is executed using PhantomJS