什麼是 integration-test?
使用 CockroachDB 測試伺服器編寫整合測試的指南,包括何時使用它們以及如何使用 sqlutils。 來源:cockroachdb/cockroach。
使用 CockroachDB 測試伺服器編寫整合測試的指南,包括何時使用它們以及如何使用 sqlutils。
透過命令列快速安裝 integration-test AI 技能到你的開發環境
來源:cockroachdb/cockroach。
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使用 CockroachDB 測試伺服器編寫整合測試的指南,包括何時使用它們以及如何使用 sqlutils。 來源:cockroachdb/cockroach。
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/cockroachdb/cockroach --skill integration-test 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/cockroachdb/cockroach