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獲得代碼覆蓋率?