Get startedGet started for free

Implementing a reusable test

After learning about reusable tests, you realize that you'd love to build an in-house set of common tests for you and your team to use as you see fit. You notice that your datasets have several scenarios where you want to verify the columns contain values greater than 0. You decide to start your library by writing a reusable test for this purpose.

Note: Your data has not been materialized yet and, remember, we need to return rows that fail the test condition.

This exercise is part of the course

Intermediate dbt

View Course

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise