dbt unit tests and test driven design #1281
Replies: 1 comment
-
I've been a huge fan of TDD since I learned about it while building a small web app for ETL job management many years ago. I liked it so much I ended up writing dtspec as a means of doing TDD for data transformation work. It was originally meant to be agnostic to what the data transformation system was (e.g., it could work for pandas as well as dbt). As a user of it myself, I'd say it's "ok". I recently tried out the equal expert dbt-unit-testing approach for a new BQ dbt project I'm working on and I really like the approach. It's got several distinct advantages over dtspec:
I did run into a few problems while implementing dbt-unit-testing:
Anyway, I really think this is an excellent package and would love to see it developed further and adopted as a central piece to building a robust dbt data pipeline. |
Beta Was this translation helpful? Give feedback.
-
I found some really interesting content on test driven development using dbt from some developers at a software consultancy called equal experts. What's even more fascinating is their approach to a language agnostic pipeline architecture. It's exciting to see the way dbt fits in so nicely to their paradigm.
Most relevant to this discussion is the test driven design approach, but I've also included some links to additional context. It would be cool if the original authors would be into contributing.
Beta Was this translation helpful? Give feedback.
All reactions