Archive for the 'testing' Category
Grails and tests - Part II: Testing dynamic taglibs using XmlSlurper
0 Comments Published by peter October 2nd, 2007 in grails, groovy, testing.A couple of days ago I wrote my first post on TDD using Grails. Now let's move on to something more interesting: testing dynamic taglibs.
In another post I showed how to create a simple tag. Which looked like this:
PLAIN TEXT
GROOVY:
import com.plink.plextile.*;
class TextileTagLib {
TextParser textileParser
def textile = { attrs ->
out <<textileParser.parseTextile(attrs.text, true)
[...]
Grails and tests - Part I: Getting started with TDD
2 Comments Published by peter September 26th, 2007 in grails, groovy, testing.Writing tests for a Grails applications is really simple. In Groovy code actually compiles when non-existing methods of objects are referenced (as opposed to Java) which makes it possible exercise TDD (test driven development).
Grails supports two types of tests out of the box, unittests and integrationtests. Tests are located in the test folder of [...]



















