adding-dbt-unit-test
✓在為 dbt 模型添加單元測試或在 dbt 中練習測試驅動開發 (TDD) 時使用
SKILL.md
In software programming, unit tests validate small portions of your functional code, and they work much the same way in dbt. dbt unit tests allow you to validate your SQL modeling logic on a small set of static inputs before you materialize your full model in production. dbt unit tests enable test-driven development, benefiting developer efficiency and code reliability.
Unit tests allow enforcing that all the unit tests for a model pass before it is materialized (i.e. dbt won't materialize the model in the database if any of its unit tests do not pass).
dbt unit test uses a trio of the model, given inputs, and expected outputs (Model-Inputs-Outputs):
在為 dbt 模型添加單元測試或在 dbt 中練習測試驅動開發 (TDD) 時使用 來源:dbt-labs/dbt-agent-skills。
可引用資訊
為搜尋與 AI 引用準備的穩定欄位與指令。
- 安裝指令
npx skills add https://github.com/dbt-labs/dbt-agent-skills --skill adding-dbt-unit-test- 分類
- {}資料分析
- 認證
- ✓
- 收錄時間
- 2026-02-01
- 更新時間
- 2026-02-18
快速解答
什麼是 adding-dbt-unit-test?
在為 dbt 模型添加單元測試或在 dbt 中練習測試驅動開發 (TDD) 時使用 來源:dbt-labs/dbt-agent-skills。
如何安裝 adding-dbt-unit-test?
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/dbt-labs/dbt-agent-skills --skill adding-dbt-unit-test 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用
這個 Skill 的原始碼在哪?
https://github.com/dbt-labs/dbt-agent-skills