Replies: 7 comments 32 replies
-
Beta Was this translation helpful? Give feedback.
-
|
Yes, It seems tests are annotated with |
Beta Was this translation helpful? Give feedback.
-
|
Another breakage is with the void "test YamlCommandFactory readCommands"() {
given: "A resource and profile"
Resource mockCommandYml = Mock()
TestYamlCommandFactory yamlCommandFactory = new TestYamlCommandFactory()
when:
mockCommandYml.getInputStream() >> new ByteArrayInputStream(getCommandYaml())
mockCommandYml.filename >> "clean.yml"
Map data = yamlCommandFactory.testReadCommandFile(mockCommandYml)
then:
data
data.description == "Cleans a Grails application's compiled sources"
}ResourceProfileSpec > test YamlCommandFactory readCommands FAILED
groovy.lang.MissingMethodException: No signature of method: org.grails.cli.profile.ResourceProfileSpec.MockImpl() is applicable for argument types: (String, Class) values: [mockCommandYml, interface org.grails.io.support.Resource]
Possible solutions: Mock(), Mock(java.lang.Class), Mock(java.util.Map, java.lang.Class)
at org.grails.cli.profile.ResourceProfileSpec.test YamlCommandFactory readCommands(ResourceProfileSpec.groovy:84) |
Beta Was this translation helpful? Give feedback.
-
|
Groovy 5 is enforcing the package-protected visibility of the implementation methods. I think some of these methods need to be protected or public: |
Beta Was this translation helpful? Give feedback.
-
|
I started to look at the changes needed for Groovy 5. JDK 11 is now the minimum supported version for Groovy 5. Spock uses java versions back to 8 since it still publishes for Groovy 2.5. Would the Spock team drop Groovy 2.5 support or continue to maintain it? |
Beta Was this translation helpful? Give feedback.
-
|
So I'm not sure how to proceed with this, |
Beta Was this translation helpful? Give feedback.
-
|
I am working on migrating Micronaut to Apache Groovy 5 for Micronaut 5. We use Spock heavily. A Spock version compatible with Groovy 5 would be really awesome. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone, thanks for this amazing framework!
I have been enjoying using it since forever, mainly in Grails projects.
Groovy 5 is about stabilize and start releasing beta versions.
I am in the process of setting up a CI workflow in the Grails Core repository to test Groovy 5 compatibility.
One thing that popped out was that the Spock
thrownmethod does not work with Groovy 5:Are there any discussions or work going on towards supporting Groovy 5?
(I'd be happy to pitch in, in any way I can, if help is needed.)
Beta Was this translation helpful? Give feedback.
All reactions