文件名称:goconvey-junit-report
文件大小:8KB
文件格式:ZIP
更新时间:2024-07-24 09:40:43
Go
goconvey-junit-报告 将传送的go test输出转换为 xml 报告,适用于需要 junit xml 报告的应用程序(例如 )。 测试必须以经典的 BDD 格式编写 Given ... {And ...}* When ... Then ... {And ...}* 还要确保标准输出上没有任何调试/错误输出,否则会影响报告生成。 安装 go get github.com/NeroINC/goconvey-junit-report 用法 在 Windows 中,您需要添加标志-useDot=true因为 goconvey 在 Windows 操作系统上使用不同的输出: go test -v | goconvey-junit-report -useDot=true > report.xml 如果您在一个包含多个子包的包中,您可以在一次运行中测试所有子包 go test
【文件预览】:
goconvey-junit-report-master
----goconvey-junit-report_test.go(6KB)
----README.md(2KB)
----junit-formatter.go(4KB)
----tests()
--------02-report.xml(2KB)
--------02-fail.txt(966B)
--------01-pass.txt(598B)
--------01-report.xml(1KB)
----parser.go(4KB)
----goconvey-junit-report.go(492B)