dbt-unit-testing

Community

Validate dbt SQL with deterministic unit tests.

Authornrakow
Version1.0.0
Installs0

System Documentation

What problem does it solve?

dbt-unit-testing helps analytics engineers validate dbt transformations by writing unit tests that run without a warehouse connection, catching logic errors early with mocked inputs and expected outputs.

Core Features & Use Cases

  • Create unit tests in the model schema.yml using the unit_tests section to simulate inputs and verify outputs.
  • Use given blocks with mocked ref() and source() inputs, and optionally inline fixtures or CSV fixtures for larger datasets.
  • Support edge-case coverage, overrides for deterministic behavior, and macro compatibility to test compiled SQL rather than internals.

Quick Start

Provide a unit test by adding a unit_tests entry under the model's schema.yml, supply mocked inputs in given blocks, and assert expected outputs in the expect section.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: dbt-unit-testing
Download link: https://github.com/nrakow/ae-skills-dev/archive/main.zip#dbt-unit-testing

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.