GroovyMN / gum-website

Groovy Users of Minnesota
http://groovy.mn
6 stars 10 forks source link

Spock test errors after upgrade to grails 2.3.x #124

Closed staticnull closed 10 years ago

staticnull commented 10 years ago

We are seeing similar errors to the following now when running grails test-app after upgrading app to grails 2.3.x.

| Error --Output from Expect default max-results when no maxResults passed-- [11:57:57.776] DEBUG [main] gum.CalendarTagLib - attrs: [:] | Running 12 spock tests... 2 of 12 | Error --Output from Expect maxResults of 1 if passed 1-- [11:57:58.369] DEBUG [main] gum.CalendarTagLib - attrs: [max:1] | Running 12 spock tests... 3 of 12 | Error --Output from Expect no tag error if passed action and href an value [happy path]-- [11:57:58.749] DEBUG [main] gum.NavLinkTagLib - attrs: [action:home, href:/home, value:Home, tagName:nav:link] | Running 12 spock tests... 4 of 12 ... | Error Fatal error running tests: null (Use --stacktrace to see the full trace) | Tests FAILED - view reports in /Users/staticnull/development/projects/groovymn/gum-website/target/test-reports | Error Error executing script TestApp: java.lang.NullPointerException (Use --stacktrace to see the full trace)

staticnull commented 10 years ago

It also appears that none of the functional Geb tests are running as they are not mentioned in the /target/test-reports

staticnull commented 10 years ago

I have been unable to get rid of the errors. Tried everything I could think of but failed miserably.

staticnull commented 10 years ago

Errors occurring because spock tests were running twice. Once with the default version running with grails 2.3 and the one we were including in BuildConfig.