简体   繁体   中英

Grails 2.0.0 JUnit test @RunWith annotation equivalent

So my understanding is that the grails testing framework is backed by JUnit tests.

I am trying to hook in cucumber-jvm, and the simplest way appears to be to have a JUnit test with the annotations @RunWith(Cucumber.class) and @Feature(".")

Those annotations appear to be ignored when I build test classes however. I suspect my groovy test classes aren't exactly picked up as JUnit test cases in the normal way.

Is there any way to get the equivalent of those annotations working in grails?

I am using Cucumber-JVM and Geb to functionally test some of our internal grails apps, using this grails plugin http://grails.org/plugin/cucumber

So far so good, I haven't used the annotations you mention however.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM