去语言测试自动化(go language Automation testing)

.NET Framework IT屋
问 题

Please someone help me out on go language automation testing

i have been working out manual coding for automation. Please help me any packages or framework available to run automation testing in go.

解决方案

Go provides its own testing package you can view it here

https://golang.org/pkg/testing/

You can write your own tests a common layout is to write your file, then write a _test.go file to test e.g.

package.go
package_test.go

then you can test your file by running

go test

And bam, you're good to go

Here's a random test package from a random app for example: https://github.com/yohcop/openid-go/blob/master/redirect_test.go

本文地址:IT屋 » go language Automation testing

问 题

请别人帮我就走语言自动测试

我已经工作了自动化手工编码。请帮我可以运行在旅途自动化测试的软件包或框架。


解决方案

转到提供了自己的测试包,你可以在这里查看

https://golang.org/pkg/testing/

您可以编写自己的测试中常见的布局是写你的文件,然后写一个 _test.go 文件来测试例如

  package.go
package_test.go

,那么你可以通过运行测试文件

去测试

和BAM,你是好去。

下面是例如一个随机程序随机测试包:的https: //github.com/yohcop/openid-go/blob/master/redirect_test.go

本文地址:IT屋 » 去语言测试自动化