# 测试

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/zh-cn/help/go/llms.txt).

使用 GoLand [创建测试](create-tests.html)、 [运行和调试测试](performing-tests.html)，并 [衡量代码覆盖率](code-coverage.html)。

##  测试框架 

在   运行测试   运行/调试配置中，从   测试框架   选择以下选项之一：

gotest
: 用于运行标准单元测试。 如需了解更多有关  `go test` 的信息，请参阅 [软件包测试](https://pkg.go.dev/testing)。

gocheck
: 运行使用 [gocheck](https://pkg.go.dev/gopkg.in/check.v1) 测试库编写的测试。 使用前，请将此库添加到项目中。

gobench
: 用于运行性能测试。 如需了解更多有关  `gobench`  的信息，请参阅 [包测试：基准测试](https://pkg.go.dev/testing#hdr-Benchmarks)。

go test -fuzz
: 用于运行模糊测试。 在 Go 中，模糊测试是一种通过提供大量随机或意外的输入来自动测试软件，以发现漏洞或错误的技术。 如需了解更多有关  `go test -fuzz` 的信息，请参考 [Go Fuzzing](https://go.dev/security/fuzz/)。

![用于测试的包](https://resources.jetbrains.com/help/img/idea/2026.3/go_testing_packages.png)

## See also

### 参考

[运行工具窗口](run-tool-window.html) [测试运行器选项卡](test-runner-tab.html)

