run-acceptance-tests by hashicorp/agent-skills
npx skills add https://github.com/hashicorp/agent-skills --skill run-acceptance-tests验收测试是一种以 TestAcc 为前缀的 Go 测试函数。
要运行一个名为 TestAccFeatureHappyPath 的聚焦验收测试:
使用以下环境变量运行 go test -run=TestAccFeatureHappyPath:
TF_ACC=1默认输出非详细测试结果。
要诊断失败的验收测试,请按顺序使用以下选项。这些选项是累积的:每个选项都包含其上方所有选项的功能。
-count=1 选项以确保 go test 不使用缓存的结果。go test 输出。使用 选项。广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
-vTF_LOG=debug 来启用调试级别日志记录。TF_ACC_WORKING_DIR_PERSIST=1 来启用持久化。通过的验收测试可能是假阴性。要“翻转”一个名为 TestAccFeatureHappyPath 的已通过验收测试:
每周安装量
582
代码仓库
GitHub 星标数
477
首次出现
2026年1月26日
安全审计
安装于
github-copilot469
opencode454
codex453
gemini-cli444
cursor393
amp385
An acceptance test is a Go test function with the prefix TestAcc.
To run a focussed acceptance test named TestAccFeatureHappyPath:
Run go test -run=TestAccFeatureHappyPath with the following environment variables:
TF_ACC=1Default to non-verbose test output.
To diagnose a failing acceptance test, use these options, in order. These options are cumulative: each option includes all the options above it.
-count=1 option to ensure that go test does not use a cached result.go test output. Use the -v option.TF_LOG=debug.TF_ACC_WORKING_DIR_PERSIST=1.A passing acceptance test may be a false negative. To "flip" a passing acceptance test named TestAccFeatureHappyPath:
Weekly Installs
582
Repository
GitHub Stars
477
First Seen
Jan 26, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykFail
Installed on
github-copilot469
opencode454
codex453
gemini-cli444
cursor393
amp385