I'm having trouble with running grails-core tests. After cloning repo, and executing "gradlew install", "gradlew test" consistently fails on "org.codehaus.groovy.grails.web.binding.JSONBindingToNullTests.testXmlBindingToNull()". It reports "org.xml.sax.SAXParserException: Premature end of file". I can provide full stacktrace if necessary.
Is this known issue, or is there some option needed to be set for tests to succeed? I mean, maybe I'm doing something wrong since the test does succeed on official hudson server.
Same test fails on both Ubuntu and Windows 7 while using sun jdk 1.6.0_26.
Re: grails-core tests fail when run with gradlew test
I believe I've found a workaround for this issue.
First, it should be noted that I was able to successfully run the test from an IDE (IDEA). With this in mind, and after looking at "grails-core/grails-test-suite-web/build.gradle", I tried to isolate a test as it is already done for some others in "build.gradle".
After that, test succeeded, but another one failed on Ubuntu (org.codehaus.groovy.grails.web.converters.ControllerWithXmlConvertersTests.testConvertArrayWithNullElements()), but not on Windows 7. Without looking at details, I added that test in isolation too. And it worked :-)
Bellow is a modified version of "grails-core/grails-test-suite-web/build.gradle":