·adding-dbt-unit-test
{}

adding-dbt-unit-test

dbt-labs/dbt-agent-skills

Use when adding unit tests for a dbt model or practicing test-driven development (TDD) in dbt

28Installs·2Trend·@dbt-labs

Installation

$npx skills add https://github.com/dbt-labs/dbt-agent-skills --skill adding-dbt-unit-test

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):

Use when adding unit tests for a dbt model or practicing test-driven development (TDD) in dbt Source: dbt-labs/dbt-agent-skills.

View raw

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/dbt-labs/dbt-agent-skills --skill adding-dbt-unit-test
Category
{}Data Analysis
Verified
First Seen
2026-02-01
Updated
2026-02-18

Quick answers

What is adding-dbt-unit-test?

Use when adding unit tests for a dbt model or practicing test-driven development (TDD) in dbt Source: dbt-labs/dbt-agent-skills.

How do I install adding-dbt-unit-test?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/dbt-labs/dbt-agent-skills --skill adding-dbt-unit-test Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor

Where is the source repository?

https://github.com/dbt-labs/dbt-agent-skills