maven-surefire-plugin 的 forkedProcessTimeoutInSeconds 的默认值是多少?
What's the default value for maven-surefire-plugin's forkedProcessTimeoutInSeconds?
forkedProcessTimeoutInSeconds
可以设置为 0
以防止分叉测试 VM 在指定时间后被假定为已死亡。 属性 的默认值是多少?
The documentation doesn't specify it, the XML autocompletion in NetBeans says undefined
which doesn't make sense because only setting it to a specified value or 0
does. A superficial look in the code 表明该值必须设置在定义它的 class 之外。
弄清楚这一点并不太重要,我更想确保我的分叉过程是正确的,并且可以提出改进建议。
因为 forkedProcessTimeoutInSeconds
是原始整数,它本身默认为 0。通过属性设置的任何大于 0 的值都会导致 ForkClient
设置该值的超时秒数。
<forkedProcessTimeoutInSeconds>
Kill the forked test process after a certain number of seconds. If set to 0, wait forever for the process, never timing out.
来源:https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#forkedProcessTimeoutInSeconds
forkedProcessTimeoutInSeconds
可以设置为 0
以防止分叉测试 VM 在指定时间后被假定为已死亡。 属性 的默认值是多少?
The documentation doesn't specify it, the XML autocompletion in NetBeans says undefined
which doesn't make sense because only setting it to a specified value or 0
does. A superficial look in the code 表明该值必须设置在定义它的 class 之外。
弄清楚这一点并不太重要,我更想确保我的分叉过程是正确的,并且可以提出改进建议。
因为 forkedProcessTimeoutInSeconds
是原始整数,它本身默认为 0。通过属性设置的任何大于 0 的值都会导致 ForkClient
设置该值的超时秒数。
<forkedProcessTimeoutInSeconds>
Kill the forked test process after a certain number of seconds. If set to 0, wait forever for the process, never timing out.
来源:https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#forkedProcessTimeoutInSeconds