“测试”属性是否优先于Surefire中的“排除”配置列表?

时间:2010-12-09 16:46:34

标签: maven-2 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

1 个答案:

答案 0 :(得分:0)

是。通过反复试验,我认为我已经证明“测试”属性确实优先。

但是,如果包含列表和排除列表都在配置中定义并且它们重叠,那么排除列表将优先。

相关问题