運(yùn)行g(shù)b:gb test .../<regex>/... -v工作,但運(yùn)行g(shù)b test .../<regex>/... -coverprofile=cover.out結(jié)果:testing: cannot use -test.coverprofile because test binary was not built with coverage enabled雖然go test -coverprofile cover.out工作。如何使用 gb 獲得代碼覆蓋率?
如何使用 gb 獲得代碼覆蓋率?
人到中年有點(diǎn)甜
2021-12-07 15:21:44