Maven 3.8线程计数和forkcount之间的差异和suitsClasses并行性?
如果我正在执行MVN TEST -T 5
,那么我在多模块Maven项目中进行了确定的配置
<configuration>
<forkCount>2</forkCount>
<reuseForks>true</reuseForks>
<perCoreThreadCount>false</perCoreThreadCount>
<parallel>suitesAndClasses</parallel>
</configuration>
,那么并行性在这里如何工作?
- 是否会在Surefire fork1中进行5个测试课程将运行 与Module1和5个测试类平行的类别将并行运行 从fork2中的模块2假设没有测试套件?
- 当我有测试套件时,它会如何表现?它会像从fork1中运行的模块1的suite1一样,并并行运行5个测试类,而在fork2中运行了一个与模块2的套件,将运行5个并行运行的5个测试类?那些不属于任何套房的测试课程会发生什么?
版本
- Maven版本3.8.4
- SureFire版本3.0.0-m6
I am having a surefire configuration like below
<configuration>
<forkCount>2</forkCount>
<reuseForks>true</reuseForks>
<perCoreThreadCount>false</perCoreThreadCount>
<parallel>suitesAndClasses</parallel>
</configuration>
In a multimodule maven project if I am executing mvn test -T 5
then how does parallelism work here?
- Will it is that in surefire fork1 5 tests classes will be running in
parallel from module1 and 5 tests classes will be running in parallel
from module2 in fork2 assuming no test suites? - How it will behave when I have test suites? Will it be like suite1 from module1 running in fork1 with 5 test classes running in parallel and in fork2 a different suite from module2 will be running with 5 test classes running in parallel? What happen to those test class which do not belong to any suites?
Versions
- Maven Version 3.8.4
- Surefire version 3.0.0-M6
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论