beckje01 / grails-code-coverage

Git Repo of the Grails Code Coverage plugin.
http://grails.org/plugin/code-coverage
16 stars 26 forks source link

Replace closure names in reports not working - Grails 2.3.2 #19

Closed marcuskrantz closed 11 years ago

marcuskrantz commented 11 years ago

When I run any test with: grails test-app -coverage -xml -append

I get the following stacktrace

| Error Error running forked test-app: No such property: grailsApp for class: _Events (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.) groovy.lang.MissingPropertyException: No such property: grailsApp for class: _Events at _Events.replaceClosureNamesInReports(_Events.groovy:107) at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1254) at _Events$_run_closure3.doCall(_Events.groovy:61) at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1254) at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1254) | Error Error running forked test-app: No such property: grailsApp for class: _Events

In Jenkins, this causes the build to fail since the forked VM exits with an error message.