我正在尝试使用
bazel coverage --combined_report=lcov //...
Run Code Online (Sandbox Code Playgroud)
但它总是失败并显示相同的消息:
Executed 0 out of 11 tests: 11 tests pass.
There were tests whose specified size is too big. Use the --test_verbose_timeout_warnings command line option to see which ones these are.
Run Code Online (Sandbox Code Playgroud)
自然地,我使用了标志--test_verbose_timeout_warnings,但出现错误
//pkg/util:go_default_test (cached) PASSED in 4.4s
WARNING: //pkg/util:go_default_test: Test execution time (4.4s excluding execution overhead) outside of range for MODERATE tests. Consider setting timeout="short" or size="small".
Run Code Online (Sandbox Code Playgroud)
然后我尝试了它,--nocache_test_results但没有什么不同。
我试过了
bazel coverage --combined_report=lcov --test_size_filters=small //...
Run Code Online (Sandbox Code Playgroud)
这就是我得到的:
WARNING: All specified test targets were …Run Code Online (Sandbox Code Playgroud)