build-artifacts

Regenerate dbt test fixtures after changes to the dbt_project directory.

123|7|Updated Jun 25, 2024
One-click install
npx skills add https://github.com/godatadriven/dbt-bouncer --skill build-artifacts-godatadriven
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: build-artifacts
Source: https://github.com/godatadriven/dbt-bouncer/tree/main/.claude/skills/build-artifacts
Command: npx skills add https://github.com/godatadriven/dbt-bouncer --skill build-artifacts-godatadriven

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Regenerate test fixture files after making changes to the dbt_project/.

Core Features & Use Cases

  • Regenerate fixtures for dbt projects after model changes to keep tests in sync.
  • Verify fixtures by inspecting target directories and running tests.
  • Use the Makefile to manage fixture generation and test execution.

Quick Start

Run make build-artifacts to regenerate the dbt test fixtures.

Frequently Asked Questions about build-artifacts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I regenerate dbt test fixtures after changing models or seeds?

Regenerate dbt test fixtures by running make build-artifacts after updating models, seeds, or tests in the dbt_project directory to keep tests synchronized with recent schema modifications.

When do I need to regenerate dbt test fixtures?

Regenerate dbt test fixtures when fixture data becomes stale, dbt version dependencies change, or models, seeds, and tests are updated in the dbt_project directory. This ensures test data accurately reflects current project logic.

How do I verify dbt test fixtures after regenerating them?

Verify dbt test fixtures by inspecting target directories and running tests with make test. This confirms that the regenerated fixture data matches expected outputs and passes validation workflows.

Does build-artifacts work with specific dbt versions?

build-artifacts relies on the Makefile to generate fixtures for dbt 1.10 and 1.11. It applies to workflows where version dependencies change and fixture data needs regeneration to match the target dbt environment.

What is the best way to keep dbt tests in sync after project updates?

The best way to keep dbt tests in sync is using the Makefile to manage fixture generation and test execution. Run make build-artifacts to regenerate fixtures, then make test to validate model changes in the dbt_project directory.