@TestFor not found in Grails 3.3.0

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

@TestFor not found in Grails 3.3.0

Brad Whitaker-2
@TestFor and @Mock aren't found when I create a fresh app project. test-app fails during compilation of a generated Spec. It looks like 'grails-plugin-testing' isn't included in 3.3.0. What is the fix for this?

--
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/8fd3901d-71ea-479a-bbfe-ab61fc222c9e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: @TestFor not found in Grails 3.3.0

Chris Rosburg
I guess you have to use the new trait based test framework. Please refer to the docs (see the what's new section)

Von meinem iPhone gesendet

Am 27.07.2017 um 02:14 schrieb Brad Whitaker <[hidden email]>:

@TestFor and @Mock aren't found when I create a fresh app project. test-app fails during compilation of a generated Spec. It looks like 'grails-plugin-testing' isn't included in 3.3.0. What is the fix for this?

--
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/8fd3901d-71ea-479a-bbfe-ab61fc222c9e%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/B8FECD3A-21B8-4BD7-AB59-3108C68E9631%40aretic.de.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: @TestFor not found in Grails 3.3.0

Sergio del Amo Caballero
Check http://testing.grails.org you will find instructions to migrate your tests.  It is really simple

--
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/df093926-2e93-4c4c-a0bf-0a55fa76f7ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: @TestFor not found in Grails 3.3.0

bobbywarner
You have to include the "mixins" dependency in your 3.3 app.  There currently isn't a 3.3.0 final release of this dependency, but you can use the RC1 version that's available.

https://repo.grails.org/grails/core/org/grails/grails-test-mixins/

testCompile "org.grails:grails-test-mixins:3.3.0.RC1"


Thanks,
Bobby

On Friday, July 28, 2017 at 6:08:10 AM UTC-5, Sergio del Amo Caballero wrote:
Check <a href="http://testing.grails.org" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ftesting.grails.org\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFNRQHpjhIPzo2kNcBTRy8sexSB_g&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ftesting.grails.org\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFNRQHpjhIPzo2kNcBTRy8sexSB_g&#39;;return true;">http://testing.grails.org you will find instructions to migrate your tests.  It is really simple

--
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/cd26b765-a6ac-458d-b2b6-99c6355dd68f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.