运行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 获得代码覆盖率?
人到中年有点甜
哆啦的时光机
随时随地看视频慕课网APP
相关分类