运行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 获得代码覆盖率?
哆啦的时光机
相关分类