Grails Integration Testing

It appears that the test runner does not provide the ability run tests that call Grails dynamic methods. For instance, the following tests fails inside IntelliJ but not from the grails command line:

 findApplicationsWithLogEvents()  {
        return LogEvent.executeQuery("select distinct e.application from LogEvent e")    
    }
}
]]>


It's unclear to me if this should work. If not, is it unreasonable to think we'll see this in a future version? I have no idea how much of a challenge this would be to implement.

2 comments

Weird,
could you change the working directory to grails-app/test and if it works this way?

Eugene.

0

I have tried running test both from test/integration and grails-app/test -- no GORMizing is done, hence no testing for domain classes. Is there some way to get this to work?

0

Please sign in to leave a comment.