在我的设置(版本0.12.0)中,bazel test
命令对标记为size = small
的测试使用默认超时75秒(而documentation提到这是60秒)
有没有一种方法可以在bazel
命令行上提供自定义超时,比如10秒,以便在测试挂起时更快地终止测试?
发布于 2018-06-18 06:06:31
我希望我没有误解这个问题,但这听起来真的像是您在寻找--test_timeout
选项:
--test_timeout
(a single integer or comma-separated list of 4 integers; default: "-1")
Override the default test timeout values for test timeouts (in secs). If a
single positive integer value is specified it will override all
categories. If 4 comma-separated integers are specified, they will
override the timeouts for short, moderate, long and eternal (in that
order). In either form, a value of -1 tells blaze to use its default
timeouts for that category.
如果您希望每次都使用相同的选项,则可以使用bazelrc省去一些键入操作。
https://stackoverflow.com/questions/50877472
复制相似问题