The Ultimate Guide to Elevating Your dbt Tests to the Next Level for Free
In the previous article, we successfully set up Elementary in our dbt repository and ran it in production. Now, let’s delve deeper into Elementary’s tests, explore the available options with examples, and determine which tests are best suited for different data scenarios.
If you missed the first part, catch up here: Opensource Data Observability with Elementary – From Zero to Hero (Part 1)
During our report run, we encountered a “Test Configuration” tab exclusive to Elementary Cloud. While this feature offers a user-friendly interface in the cloud version, we can also create test configurations in the open-source version using .yaml
files. These configurations are akin to native dbt tests and follow a similar hierarchy where more specific settings override broader ones.
So, what types of tests can you set up with Elementary? The platform categorizes them into Schema tests, Anomaly tests, and Python tests. Let’s explore each category to understand how they function: