grails-core tests failing

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

grails-core tests failing

PaulWaldo
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.


--
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 [hidden email].
To post to this group, send email to [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

Re: grails-core tests failing

PaulWaldo
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.

On Saturday, January 2, 2016 at 7:50:52 AM UTC-5, Paul Waldo wrote:
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.

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/b39477be-9349-4e12-9aa7-887e43c7803c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: grails-core tests failing

Graeme Rocher-2
In reply to this post by PaulWaldo
I guess we would need to know what OS / JDK you are using.

Thanks

On 02 Jan 2016, at 13:50, Paul Waldo <[hidden email]> wrote:

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.



--
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 [hidden email].
To post to this group, send email to [hidden email].
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.

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/4138D860-3A6F-477E-AB2A-B4D9DA163BD4%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: grails-core tests failing

PaulWaldo
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

On Tuesday, January 5, 2016 at 12:59:38 PM UTC-5, Graeme Rocher wrote:
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/17617ddb-9e9d-42f0-af37-b13de61479de%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: grails-core tests failing

Graeme Rocher-2
In reply to this post by PaulWaldo
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 <[hidden email]> wrote:

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.



--
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 [hidden email].
To post to this group, send email to [hidden email].
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.

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/B28A2AD2-DB62-4783-8E78-E39596E85594%40gmail.com.
For more options, visit https://groups.google.com/d/optout.