Add shared source directory for integration and unit tests


New member
I have a few utility classes that I want to be made available for any type of test execution, integration, unit, and functional for that matter. How do I add a source directory in BuildConfig.groovy so that it is picked up during compilation?

I have already tried:
* grailsSettings.testDependencies.add new File('${basedir}/test/util')
* grailsSettings.testDependencies = [new File('${basedir}/test/util')]

Along with a lot of other things that were not even close. None of these have done what I wanted so that I can continue to just run 'grails test-app :unit' with the 'test/util' directory being resolved during test compilation and execution.

Any help would be much appreciated.