Rinkkasatiainen.github.com

Github pages - my own learning diary


View My GitHub Profile

What I've learned about Grails

What I have learned?

how to add tests/common to unit/integration/functional test types

You don’t. In 1.3.9. You can in 2.x.y, though.

As a workaround you can add in scripts/_Events.groovy: 

eventCompileStart = { 
	projectCompiler.srcDirectories << "$basedir/test/common" 
} 
eventAllTestsStart = { 
	classLoader.addURL(new File("$basedir/test/common").toURL()) 
} 

as instructed 1

unit testing tricks on grails