开发者

Running Groovy Unit Tests from a Eclipse Plugin Fragment?

i'm currently working on a Eclipse RCP Project. I have a Plugin Fragment where i store my Unit Tests. I like to store the Groovy U开发者_JAVA百科nit Tests there as well. But when i try to create a Groovy unit test, Eclipse doesn't let me, because the fragment is not a Groovy Project. Is there a way to run the the groovy tests inside the fragment? Or should i stop trying?

Thanks!

Patrick


If you don't want to turn your project into a groovy project, then you can create a text file with a .groovy extension and open it in a groovy editor. However, you will not get many nice editor features. Content assist, navigation, the outline view, etc will be inactive.

I would recommend that you convert the project into a groovy project, and create a source folder where all of your groovy unit tests would go. From there, you can run your tests, etc. If you don't want your groovy tests being built from PDE, then you can simply exclude that souurce folder from your build.properties file.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜