如何告诉 Emma 在 Maven 项目中使用哪些测试类

发布于 2024-12-11 04:43:34 字数 83 浏览 6 评论 0原文


我的项目中有两种测试。其中一个以“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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

最偏执的依靠 2024-12-18 04:43:34

我自己没有尝试过,但是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).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文