grails-core tests failing

30 views
Skip to first unread message

Paul Waldo

unread,
Jan 2, 2016, 7:50:52 AM1/2/16
to Grails Dev Discuss
Hi all,

I'm trying to do some hacking on the 3.0.x branch of grails-core.  With unmodified sources, many tests are failing, as shown below.  I have also tried this with the v3.1.0.RC1 tag and get similar results.  It was my expectation that all tests would pass for at least the RC tag.

I'm probably doing something wrong, as I am not up to speed on the fineries of gradle. If the test are indeed broken, what would be the best way to just run my own tests that will be going in the grails-core module?  Thanks for any help!

Paul

paul-> git checkout 3.0.x

Switched to branch '3.0.x'

Your branch is up-to-date with 'origin/3.0.x'.

[~/src/Grails/grails-core 3.x (3.0.x) ]

paul-> git pull

Already up-to-date.

[~/src/Grails/grails-core 3.x (3.0.x) ]

paul-> ./gradlew test 

:buildSrc:compileJava UP-TO-DATE

:buildSrc:compileGroovy UP-TO-DATE

:buildSrc:processResources UP-TO-DATE

:buildSrc:classes UP-TO-DATE

:buildSrc:jar UP-TO-DATE

:buildSrc:assemble UP-TO-DATE

:buildSrc:compileTestJava UP-TO-DATE

:buildSrc:compileTestGroovy UP-TO-DATE

:buildSrc:processTestResources UP-TO-DATE

:buildSrc:testClasses UP-TO-DATE

:buildSrc:test UP-TO-DATE

:buildSrc:check UP-TO-DATE

:buildSrc:build UP-TO-DATE

:grails-async:compileJava UP-TO-DATE

:grails-async:compileGroovy UP-TO-DATE

:grails-async:processResources UP-TO-DATE

:grails-async:classes UP-TO-DATE

:grails-async:compileTestJava UP-TO-DATE

:grails-async:compileTestGroovy UP-TO-DATE

:grails-async:processTestResources UP-TO-DATE

:grails-async:testClasses UP-TO-DATE

:grails-async:test

:grails-bootstrap:compileJava UP-TO-DATE

:grails-bootstrap:compileGroovy

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0

warning: [options] bootstrap class path not set in conjunction with -source 1.7

Note: Some input files use unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

1 warning

:grails-bootstrap:processResources

:grails-bootstrap:classes

:grails-bootstrap:compileTestJava UP-TO-DATE

:grails-bootstrap:compileTestGroovy

warning: [options] bootstrap class path not set in conjunction with -source 1.7

1 warning

:grails-bootstrap:processTestResources UP-TO-DATE

:grails-bootstrap:testClasses

:grails-bootstrap:test


grails.util.BuildSettingsEnvironmentSpec > Test that environment blocks work in BuildConfig FAILED

    groovy.lang.MissingMethodException at BuildSettingsEnvironmentSpec.groovy:29


org.codehaus.groovy.grails.cli.maven.MavenPomGeneratorSpec > test generating a pom file using Ivy dependency manager FAILED

    java.lang.NoSuchMethodError at MavenPomGeneratorSpec.groovy:96


org.codehaus.groovy.grails.cli.support.GrailsRootLoaderSpec > NoClassDefFoundError is not obscured by ClassNotFoundException FAILED

    org.apache.tools.ant.BuildException at GrailsRootLoaderSpec.groovy:72


org.codehaus.groovy.grails.resolve.DependencyManagerConfigurerSpec > Test create ivy dependency manager FAILED

    groovy.lang.GroovyRuntimeException at DependencyManagerConfigurerSpec.groovy:14


org.codehaus.groovy.grails.resolve.IvyDependencyManagerTests > initializationError FAILED

    java.lang.NoClassDefFoundError

        Caused by: java.lang.ClassNotFoundException


org.codehaus.groovy.grails.resolve.IvyExcludeResolverSpec > Test that the IvyExcludeResolver resolves excludes FAILED

    java.lang.NoClassDefFoundError at IvyExcludeResolverSpec.groovy:28

        Caused by: java.lang.ClassNotFoundException at IvyExcludeResolverSpec.groovy:28


83 tests completed, 6 failed, 1 skipped

:grails-bootstrap:test FAILED


FAILURE: Build failed with an exception.


Paul Waldo

unread,
Jan 4, 2016, 5:44:31 PM1/4/16
to Grails Dev Discuss
Question posted on Stack Overflow http://stackoverflow.com/questions/34601208/grails-core-project-has-failing-unit-tests in case that is a more appropriate forum.

Graeme Rocher

unread,
Jan 5, 2016, 12:59:38 PM1/5/16
to grails-de...@googlegroups.com
I guess we would need to know what OS / JDK you are using.

Thanks

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grails-dev-disc...@googlegroups.com.
To post to this group, send email to grails-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/27f06d27-0213-41ec-9406-6978812a833b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Paul Waldo

unread,
Jan 5, 2016, 2:21:17 PM1/5/16
to Grails Dev Discuss
Thanks for the reply, Graeme.  I think I have resolved the issue, thanks to some suggestions by Jeff Brown.  Cleaning the project made the test run errors go away.  I had been switching around between different branches and I guess something got confused along the way.  After cleaning, all tests pass as expected.  Thanks to all for the help!

Paul

Graeme Rocher

unread,
Jan 12, 2016, 8:58:24 AM1/12/16
to grails-de...@googlegroups.com
The tests pass on the build server (we don’t do a release without them passing) and locally for me. So if the tests are failing for you it is something todo with your local environment.

Cheers
Graeme

On 02 Jan 2016, at 13:50, Paul Waldo <paulw...@gmail.com> wrote:

Reply all
Reply to author
Forward
0 new messages