testing
✓如何編寫測試、何時使用每種類型的測試以及如何運行它們。包含有關將 `.test` 轉換為 `.sqltest` 以及如何編寫 `.sqltest` 和 rust 測試的信息
SKILL.md
| .sqltest | turso-test-runner/tests/ | SQL compatibility. Preferred for new tests | | TCL .test | testing/ | Legacy SQL compat (being phased out) | | Rust integration | tests/integration/ | Regression tests, complex scenarios | | Fuzz | tests/fuzz/ | Complex features, edge case discovery |
Note: TCL tests are being phased out in favor of turso-test-runner. The .sqltest format allows the same test cases to run against multiple backends (CLI, Rust bindings, etc.).
You must start converting TCL tests with the convert command from the test runner (e.g cargo run -- convert -o ). It is not always accurate, but it will convert most of the tests. If some conversion emits a warning you will have to write by hand whatever is missing from it (e.g unroll a for each loop by hand). Then you need to verify the tests work by running them with make -C turso-test-runner run-rust, and adjus...
可引用資訊
為搜尋與 AI 引用準備的穩定欄位與指令。
- 安裝指令
npx skills add https://github.com/tursodatabase/turso --skill testing- 分類
- </>開發工具
- 認證
- ✓
- 收錄時間
- 2026-02-01
- 更新時間
- 2026-02-18
快速解答
什麼是 testing?
如何編寫測試、何時使用每種類型的測試以及如何運行它們。包含有關將 `.test` 轉換為 `.sqltest` 以及如何編寫 `.sqltest` 和 rust 測試的信息 來源:tursodatabase/turso。
如何安裝 testing?
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/tursodatabase/turso --skill testing 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用
這個 Skill 的原始碼在哪?
https://github.com/tursodatabase/turso
詳情
- 分類
- </>開發工具
- 來源
- skills.sh
- 收錄時間
- 2026-02-01