-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
同一份cover.out文件,xgo没有显示覆盖率 #260
Comments
可以看看cover.out中collection/collection.go的原始数据,看看具体是哪些范围没有覆盖。 |
可以将cover.out中这个文件相关的行贴出来吗? 以及这个文件的代码,如果不方便,可以使用x替代所有的字母。 |
抱歉回复有些迟,cover.out中collection相关行如下(我怀疑过可能是目录collection和collection/collection.go文件同名导致,所以把文件名称改为了collect.go, 但问题依旧存在):
|
@jobsLee-lcj 源代码呢? |
|
Will soon take a look, thanks |
可以尝试下最新的版本,现在覆盖率已经稳定了 |
通过
xgo test -cover -coverpkg ./... -coverprofile cover.out ./...
生成的cover.out文件,通过go tool cover -html=cover.out
可以展示出其中某个文件的覆盖率。通过xgo tool coverage serve cover.out
显示覆盖率为0%。但不是所有go文件都有这个问题The text was updated successfully, but these errors were encountered: