“测试”是否有效?属性优先于“排除”属性。 Surefire 中的配置列表?
在surefire中,如果我在“test”属性中命名一个与“excludes”配置中的模式重叠的测试,它会被执行吗?
http://maven.apache.org/plugins/maven -surefire-plugin/examples/single-test.html
http://maven.apache.org/plugins/maven-surefire-plugin/examples/inclusion-exclusion.html
In surefire, if I name a test in the "test" property that overlaps a pattern in the "excludes" config, will it get executed?
http://maven.apache.org/plugins/maven-surefire-plugin/examples/single-test.html
http://maven.apache.org/plugins/maven-surefire-plugin/examples/inclusion-exclusion.html
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的。通过反复试验,我想我已经证明“测试”属性确实优先。
但是,如果包含列表和排除列表都在配置中定义并且它们重叠,则排除列表将优先。
Yes. By trial and error I think I've proved that the "test" property does take precedence.
However, if an include list and exclude list are both defined in config and they overlap then the exclude list will take precedence.