Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Spock support for Griffon

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 griffon-app
Octocat-spinner-32 scripts
Octocat-spinner-32 src
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE.txt
Octocat-spinner-32 README.md
Octocat-spinner-32 SpockGriffonPlugin.groovy
Octocat-spinner-32 application.properties
README.md

Enables Spock for testing Griffon projects

Plugin page: http://artifacts.griffon-framework.org/plugin/spock

Spock is a testing and specification framework for Java and Groovy applications. What makes it stand out from the crowd is its beautiful and highly expressive specification language. This plugin brings the power of Spock to Griffon. It is a direct port of the Grails Spock plugin originally made by Luke Daley.

Usage

The Spock project has excellent documentation to get you started writing specifications.

 Running Tests

Tests are run just like normal Griffon tests via grails test-app. A new spock test type is added to the unit, integration and functional phases. You can use the Griffon 0.9 test type targeting feature to run only your Spock tests…

    griffon test-app :spock

Class names of Spock tests must end in either Spec or Specification; otherwise the Griffon test runner won't find them.

Scripts

  • create-unit-spec - creates a new Unit specification. Mimics GriffonUnitTestCase
  • create-integration-spec - creates a new Integration specification. Mimics a regular JUnit integration test

The FEST plugin provides an additional spec script.

Something went wrong with that request. Please try again.