当前位置: 动力学知识库 > 问答 > 编程问答 >

Unit testing a grails plugin which uses another plugin

问题描述:

I am writing a Grails plugin for my project which uses a another grails plugin, written by another group in the organization. I want to unit test my grails plugin code, but it uses the this other plugin, and when I unit test, my code fails because the other plugin is not loaded.

How do I load this other plugin before my unit tests are run?

网友答案:

I realised that I could get the same done with integration tests. So wrote integration test instead of unit tests.

分享给朋友:
您可能感兴趣的文章:
随机阅读: