开发者社区 问答 正文

Go语言的单元测试是如何执行的?

Go语言的单元测试是如何执行的?

展开
收起
夹心789 2024-06-06 16:59:29 50 分享 版权
1 条回答
写回答
取消 提交回答
  • Go语言的单元测试是直接使用go官方的单测cli命令执行,例如:

    go test ./... -timeout 3m -v -gcflags=-l \
    -cover=true -coverprofile=$coverFile -coverpkg=./... -mod=vendor
    
    2024-06-06 18:33:13
    赞同 1 展开评论