去浏览器测试 与`去试验'相结合。 在Go写行为测试.
欢迎来到高克文,一个好吃的 去测试Gopher的工具。 与`去试验 ' 有关的工作。 在终端或浏览器中根据你的取景快感使用.
GoConvey 支持当前版本的 Go( 见 Official Go ) [释放政策] (ZZURL0ZH)]. 现 这意味着Go 1.16和Go 1.17得到支持.
** 专题:**
您可以询问如何在 [Stack Overflow] (http://stackoverflow.com/questions/ask?tags=goconvey,go&title=GoConvey%3A%20) 上使用GoConvey。 使用 " go " 和 " goconvey " 标签。
** 迈努:**
安装
$去安装 GitHub.com/ smartystreets/goconvey
[快起 (ZZURL4ZH).
进行测试,例如:
(原始内容存档于2019-09-29) (英语). ```go package package_name
import ( "testing" . "github.com/smartystreets/goconvey/convey" )
func TestSpec(t *testing.T) {
// Only pass t into top-level Convey calls
Convey("Given some integer with a starting value", t, func() {
x := 1
Convey("When the integer is incremented", func() {
x++
Convey("The value should be greater by one", func() {
So(x, ShouldEqual, 2)
})
})
})
}
[浏览器] (ht)使用案例将被重复执行
考虑添加断言 `ShouldMatchRegex`
失败输出不符合标准的 `文件:行` 路径格式
`goconvey` 是否支持在不使用内联的情况下执行 `goconvey`?
允许不终止测试用例的断言(So 语句)
XSS 漏洞
覆盖率输出中的差异
CVE-2022-24785: Moment.js 路径遍历 < 2.29.2
考虑迁移到另一个线程局部变量库
渲染会在 proto 消息上引起无数次内存分配