0
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获得代码覆盖率?