qiniu / goc

A Comprehensive Coverage Testing System for The Go Programming Language
Apache License 2.0
824 stars 118 forks source link

请问有展示报告的 HTML 网页等 GUI 吗?或者输出 JSON 文本也行 #349

Open TommyLemon opened 1 year ago

TommyLemon commented 1 year ago

第一次上手,几分钟就顺利对接零代码单元测试 unitauto-go 跑起来了,感谢这个项目及贡献者们 https://github.com/TommyLemon/unitauto-go

image image

目前从文档和实际体验来看,覆盖率只能看表格形式的日志,不太直观,也不方便集成到其它项目,希望有 HTML/JSON 格式输出谢谢~ 类似 Java 版 jacoco 的 HTML 报告,或 unitauto-py 的 HTML 报告(Python coverage 库): https://github.com/TommyLemon/unitauto-py

image image

类似 issue: https://github.com/qiniu/goc/issues/256

e06084 commented 1 year ago

go已经有一些工具可以转,比如:https://github.com/axw/gocov

TommyLemon commented 1 year ago

go已经有一些工具可以转,比如:https://github.com/axw/gocov

@e06084 goc 生成的覆盖率报告文件,也能用 gocov 来转成 HTML 吗?

e06084 commented 1 year ago

go已经有一些工具可以转,比如:https://github.com/axw/gocov

@e06084 goc 生成的覆盖率报告文件,也能用 gocov 来转成 HTML 吗?

可以的

CarlJi commented 1 year ago

Hi @TommyLemon Thanks for your requests. And sure, It would be beneficial to have visualized demonstrations or documentation for the goc project. I have been planning to do this all along.

TommyLemon commented 10 months ago

@CarlJi thx, I am looking forward to ur new achievements