Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit testing Dev Blog post #5461

Merged
merged 10 commits into from
May 7, 2024
Merged

Unit testing Dev Blog post #5461

merged 10 commits into from
May 7, 2024

Conversation

dbeatty10
Copy link
Contributor

@dbeatty10 dbeatty10 commented May 7, 2024

Preview

What are you changing in this pull request and why?

dbt version 1.8 includes a built-in unit testing framework to extend the capabilities of software engineering best practices for analytics engineers. This blog post gives an introduction to using unit tests to build trusted data sets.

Checklist

Copy link

vercel bot commented May 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-getdbt-com ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 7, 2024 10:15pm

@github-actions github-actions bot added content Improvements or additions to content developer blog This content fits on the developer blog. labels May 7, 2024
@github-actions github-actions bot added the size: medium This change will take up to a week to address label May 7, 2024
@dbeatty10 dbeatty10 marked this pull request as ready for review May 7, 2024 18:45
@dbeatty10 dbeatty10 requested a review from a team as a code owner May 7, 2024 18:45
@dbeatty10 dbeatty10 requested a review from jasnonaz May 7, 2024 18:52
Copy link
Contributor

@jasnonaz jasnonaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking strong - thank you for getting this together Doug! One comment on some funky naming was my main flag for the content in this blog.

This does a good job of getting across the process of writing a unit test. Something I'd be keen for us to explore more in the near future is the process of building unit tests for your project. How and where should we be putting them in the project? What's the right number to include or the ways to think about integrating them.

That can come in a later post - this is very great and a natural starting place for our communications around unit testing.

Finally, run the model and all its tests in a single command like this:

```shell
dbt build --select hello
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something about this command doesn't sit right - wondering if we should give a more realistic model name

@dbeatty10 dbeatty10 merged commit 0c56b8e into current May 7, 2024
11 checks passed
@dbeatty10 dbeatty10 deleted the dbeatty/unit-testing-dev-blog branch May 7, 2024 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Improvements or additions to content developer blog This content fits on the developer blog. size: medium This change will take up to a week to address
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants