小编sur*_*ajd的帖子

去测试`-parallel` vs`-test.parallel`哪个标志优先?

差异go test的两个标志-parallel,并-test.parallel和标记被优先?

-parallel n
            Allow parallel execution of test functions that call t.Parallel.
            The value of this flag is the maximum number of tests to run
            simultaneously; by default, it is set to the value of GOMAXPROCS.
            Note that -parallel only applies within a single test binary.
            The 'go test' command may run tests for different packages
            in parallel as well, according to the setting of the -p flag
            (see 'go help build').
Run Code Online (Sandbox Code Playgroud)

上面的文档说明并行运行的测试数量相等, …

testing go

2
推荐指数
1
解决办法
531
查看次数

标签 统计

go ×1

testing ×1