·integration-test
</>

integration-test

使用 CockroachDB 測試伺服器編寫整合測試的指南,包括何時使用它們以及如何使用 sqlutils。

18安裝·0熱度·@cockroachdb

安裝

$npx skills add https://github.com/cockroachdb/cockroach --skill integration-test

如何安裝 integration-test

透過命令列快速安裝 integration-test AI 技能到你的開發環境

  1. 開啟終端機: 開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 執行安裝指令: 複製並執行以下指令:npx skills add https://github.com/cockroachdb/cockroach --skill integration-test
  3. 驗證安裝: 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

來源:cockroachdb/cockroach。

SKILL.md

查看原文

Integration tests use testserver, a fully functional CockroachDB server with all components in-memory and in the same process. They're SLOW to spin up (can add seconds per test case), so use them only when necessary.

Prefer sqlutils.MakeSQLRunner over raw database connections in most cases. It provides automatic error handling (fails the test on error), cleaner syntax, and helper methods for common operations.

Use sqlDB.DB when you need direct error handling rather than automatic test failure:

使用 CockroachDB 測試伺服器編寫整合測試的指南,包括何時使用它們以及如何使用 sqlutils。 來源:cockroachdb/cockroach。

可引用資訊

為搜尋與 AI 引用準備的穩定欄位與指令。

安裝指令
npx skills add https://github.com/cockroachdb/cockroach --skill integration-test
分類
</>開發工具
認證
收錄時間
2026-03-04
更新時間
2026-03-10

Browse more skills from cockroachdb/cockroach

快速解答

什麼是 integration-test?

使用 CockroachDB 測試伺服器編寫整合測試的指南,包括何時使用它們以及如何使用 sqlutils。 來源:cockroachdb/cockroach。

如何安裝 integration-test?

開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/cockroachdb/cockroach --skill integration-test 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

這個 Skill 的原始碼在哪?

https://github.com/cockroachdb/cockroach