正在运行gb:
gb test .../<regex>/... -v
有效,但正在运行gb test .../<regex>/... -coverprofile=cover.out
会导致:
testing: cannot use -test.coverprofile because test binary was not built with coverage enabled
而go test -coverprofile cover.out
有效。如何使用gb获取代码覆盖率?
答案 0 :(得分:1)