如何告诉 Emma 在 Maven 项目中使用哪些测试类
我的项目中有两种测试。其中一个以“Test”结尾,另一个以“IT”结尾。
我如何告诉艾玛应该考虑所有测试课程?
凯瑟
I have two sort of tests in my project. One of them is ending "Test", the other is ending with "IT".
How can i tell emma that it should take all test classes in account?
Kayser
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我自己没有尝试过,但是maven emma插件 properties 链接引用以下属性:
maven.emma.filter.includes
指定模式列表,以空格和/或逗号分隔。示例:com.foo.*。您可以尝试使用
**Test **IT
之类的值指定属性 - 通过 maven 命令行 (-Dmaven.emma.filter.includes="**Test **IT"< /code>)或通过插件配置(尽管我没有看到有关后者的文档)。
I haven't tried this myself, but the maven emma plugin properties link has a reference to the following property:
maven.emma.filter.includes
Specifies a list of patterns, separated with white space and/or commas. Example: com.foo.*.You could try specifiying the property with value like
**Test **IT
- either through maven command line (-Dmaven.emma.filter.includes="**Test **IT"
) or through plugin configuration (though I don't see documentation on the latter).