Posted in

Go语言v8单元测试提速秘技:testmain自定义+test binary缓存+parallel subtest调度优化,单测执行快4.8倍

第一章:Go语言v8单元测试提速 … Go语言v8单元测试提速秘技:testmain自定义+test binary缓存+parallel subtest调度优化,单测执行快4.8倍Read more

Posted in

Go测试并行陷阱:TestMain中全局state未隔离、t.Parallel()与subtest嵌套冲突、testing.TB方法在goroutine中调用panic的3种静默失败模式

第一章:Go测试并行陷阱:Tes … Go测试并行陷阱:TestMain中全局state未隔离、t.Parallel()与subtest嵌套冲突、testing.TB方法在goroutine中调用panic的3种静默失败模式Read more

Posted in

Go项目单元测试无法并行执行?揭秘t.Parallel()失效的4种底层机制(GOMAXPROCS、testenv、临时目录竞争、全局time.Now())

第一章:Go项目单元测试无法并行 … Go项目单元测试无法并行执行?揭秘t.Parallel()失效的4种底层机制(GOMAXPROCS、testenv、临时目录竞争、全局time.Now())Read more