can you generate a geb test using grailsw?

12 views
Skip to first unread message

brand...@gmail.com

unread,
Oct 11, 2016, 7:37:37 PM10/11/16
to Geb User Mailing List
Is there a way to generate a Geb functional test from the console?

I'm using IntelliJ ide, you can actually click on a button and generate unit/integration test from the IDE. I don't see one for Geb. Is there any built support for this?

Brian Kotek

unread,
Oct 11, 2016, 10:04:46 PM10/11/16
to Geb User Mailing List
If you're referring to the feature that can generate a Java test stub (JUnit, etc.) for a specific method or class, then I don't think so. But that applies to standard WebDriver and Protractor as well as Geb. 

I don't really see how it could be done. It's one thing to generate a test stub given a specific method or class. But Geb runs functional tests at the UI level, so there's really no way for IDEA to "know" what nothing to generate a test stub "from". 

On Tue, Oct 11, 2016 at 7:37 PM, <brand...@gmail.com> wrote:
Is there a way to generate a Geb functional test from the console?

I'm using IntelliJ ide, you can actually click on a button and generate unit/integration test from the IDE. I don't see one for Geb. Is there any built support for this?

--
You received this message because you are subscribed to the Google Groups "Geb User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+unsubscribe@googlegroups.com.
To post to this group, send email to geb-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/ba43c6d3-6771-4290-aab3-a88ca10d58b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Brian Kotek

unread,
Oct 11, 2016, 10:06:22 PM10/11/16
to Geb User Mailing List
*Oops, omit the "nothing". I meant: there's no way for idea to "know" what to generate a test stub "from".
Reply all
Reply to author
Forward
0 new messages