Feature request: allow execution of a single functional grails test

In Grails, I can execute a single functional test like org.me.MyDomainTests.groovy by calling
grails test-app MyDomain
However, the Grails test integration in IDEA doesn't support that extra parameter but always executes all tests. It would be very helpful for TDD (practically required) if IDEA could support the execution of a single test like the commandline does.

Thanks a lot for your great work
Dierk

related:
http://www.intellij.net/forums/thread.jspa?messageID=5208483&#5208483

5 comments
Comment actions Permalink

Hi Dierk (love the book, sorry, I had to say it! ;),

What a coincedence you ask this question: I was exactly looking for the same feature. Currently, I'm building and testing a service, which creates (.save() ) a new Project. Running it from withing IntelliJ gives me the exception:

groovy.lang.MissingMethodException: No signature of method: com.example.domain.Project.save() is applicable for argument types: () values: {}

I didn't know about the grails test-app ]]>, so I'll use that, but it would be nice to be able to run it from with IntelliJ!

0
Comment actions Permalink

Thanks a lot! Nothing to be sorry about ;)

cheers
Dierk

0
Comment actions Permalink

PS: Do you know how to execute the grails test-app ]]> when the subject under test is in a package?

Current, I have a projectservice, but it's in integration/com.example.ProjectService.

I tried
grails test-app Project
grails test-app ProjectService
grails test-app com.example.ProjectService
grails test-app com.example.Project

But grails keeps saying:
No tests found in test/integration to execute

0
Comment actions Permalink

just use
grails test-app Bla
and grails will search for BlaTests.groovy (mind the plural 's') no matter what package BlaTests is in.

cheers
Dierk

P.S. that discussion should rather go to the grails user list.

0
Comment actions Permalink

Ah, thanks Dierk!

Btw, I wouldn't mind mailing the user list, but all my messages bounce, even though I'm registered :(

0

Please sign in to leave a comment.