集成测试maven插件
有关测试 Maven 插件的 Maven 文档中列出了五个选项
- : -verifier
- maven-invoker-plugin
- Shitty-maven-plugin
- maven-it-plugin
- maven-plugin-management-plugin
我已经尝试了其中的一些,但遇到了很多问题:
- maven-verifier 似乎只有一组有限的验证 - 我需要能够做出任意断言
- shitty-maven-plugin 有一个错误,阻止它与 maven 3
- 下面的 maven-plugin-management-plugin 一起使用maven-it-plugin 很稳定,并且似乎没有在积极开发中
有人可以推荐这些插件吗?您能提供一些示例配置吗?
There are five choices listed in the maven documentation on testing maven plugins:
- maven-verifier
- maven-invoker-plugin
- shitty-maven-plugin
- maven-it-plugin
- maven-plugin-management-plugin
I've tried a few of these and had a number of problems:
- maven-verifier appears to have only a limited set of verifications -- I need to be able to make arbitrary assertions
- shitty-maven-plugin has a bug that prevents it working with maven 3
- nethier maven-plugin-management-plugin nor maven-it-plugin are stable and don't seem to be under active development
Is anyone able to recommend any of these plugins? Can you provide some example configuration?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我可以推荐的最好的东西是 maven-invoker-plugin,因为它是可以处理多种情况,并生成一个真正的 Maven 环境,其中包含与 Maven 插件相关的集成测试所需的所有内容。
The best thing i can recommend is the maven-invoker-plugin, cause it's can handle many situations and produces a real maven environment with all things which you really need to do integration test in relationship with Maven Plugins.