Notes From Ken Kousen at Austin GGUG

Ken Kousen spoke about Grails 3 testing a few weeks ago at the Austin Groovy and Grails User Group.

Here are some quick notes I took down:

Spock: You can add notes to when and then
when: "Some conditions"
then: "You should see some results"
In console:
make a list of lists, call combinations()
also: Look up "unroll" for Spock - annotation

CastleController, he uses a service, and makes it "def" instead of a type
then in his test he can do Expando to mock instead of dealing with mocking stuff

Plug-in: build-test-data

You’re welcome.