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