go test -coverprofile=c.out 报错
来源:9-2 代码覆盖率和性能测试

慕圣0138156
2022-03-08
请问老师 ,命令 :go test -coverprofile=c.out
提示 no required module provides package .out; to add it:
go get .out
是什么原因导致呢
写回答
2回答
-
qq_慕丝0367903
2022-04-18
你试下 go test -coverprofile c.out
我的也是用go test -coverprofile=c.out 不能用
网上没找到为啥去掉= 就可以,可能与环境有关
go tool cover -html c.out
这个命令也是。去掉=
10 -
ccmouse
2022-03-09
需要在具体的有.go文件的子目录中打这条命令。
012022-03-10
相似问题