araxn1d is correct, running the tests in integration mode will give you the right answer because the full application gets bootstrapped before tests are run. Now, running this kind of test (a unit test that depends on resources being available in the classpath) encounters a problem because the classpath is not setup correctly. Executing the following command
griffon -Dgriffon.cli.verbose=true test-app --unit --compileTrace=true
will output all classpaths. There you can see that the resources
directory points to $USER_HOME/.griffon/1.4.0/projects/<project_name>/resources
. If you inspect that directory you'll find the file you're looking for inside griffon-app/resources
. This means the test classpath is not accurately configured as it should be $USER_HOME/.griffon/1.4.0/projects/<project_name>/resources/griffon-app/resources
instead. This is clearly a bug, most likely found in the $GRIFFON_HOME/scripts/_GriffonClasspath.groovy
script. Could you please file a JIRA http://jira.codehaus.org/browse/griffon ticket for it? Thanks!