默认情况下,Serenity报告线程设置为80,在报告生成期间它会冻结机器,我无法找到配置线程计数的任何地方,从下面的编写测试结果报告中可以看出,配置报告线程:80,任何人都知道如何改变它?
Generating HTML Outcome Reports: false
[INFO] Generating test results for 70 tests
[INFO] 149 requirements loaded after 679 ms
[INFO] 149 related requirements found after 679 ms
[INFO] Generating test outcome reports: false
[INFO] Starting generating reports: 769 ms
[INFO] Finished generating test results for 70 tests after 8886 ms
GENERATE CUSTOM REPORTS
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 05:32 min
[INFO] Finished at: 2017-05-13T00:24:30+01:00
[INFO] Final Memory: 52M/1305M
答案 0 :(得分:1)
关于您看到的默认值:
默认情况下,Serenity报告线程设置为80 [...]
您可能正在使用具有8个虚拟逻辑核心(SMT)的四核CPU,因为默认值取决于number of processors that are available to the Java virtual machine。
Serenity使用该数字初始化它在报告生成期间使用的线程池的大小。
以下是如何更改它:
serenity.properties
文件report.threads
属性在multiple locations中查找serenity.properties文件。我建议为每个测试模块创建一个。