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

The "unit_test" selection method #5468

Closed
FishtownBuildBot opened this issue May 8, 2024 · 0 comments · Fixed by #5471
Closed

The "unit_test" selection method #5468

FishtownBuildBot opened this issue May 8, 2024 · 0 comments · Fixed by #5471
Labels
content Improvements or additions to content dbt Core The changes proposed in this issue relate to dbt Core dbt-core v1.8 improvement Use this when an area of the docs needs improvement as it's currently unclear unit testing docs for 1.8 unit testing

Comments

@FishtownBuildBot
Copy link

FishtownBuildBot commented May 8, 2024

Docs Changes Needed from dbt-core Issue #10053

dbt-labs/dbt-core#10053

Link to the page requiring updates

https://docs.getdbt.com/reference/node-selection/methods

Part(s) of the page to update

There should be a new section called The "unit_test" method. It should be similar to other sections like The "saved_query" method).

Details

We probably only want to include the final "execute a single unit test" example from below within the docs. The other pieces are just to show how someone might discover the identifier of a specific unit test in the first place.

List all resources, including unit tests:

dbt list --select unit_test:my_project.my_unit_test

List just the unit test resources:

dbt list --resource-type unit_test

List a single unit test:

dbt list --select unit_test:my_project.my_unit_test

Execute a single unit test:

dbt test --select unit_test:my_project.my_unit_test
@runleonarun runleonarun added content Improvements or additions to content improvement Use this when an area of the docs needs improvement as it's currently unclear dbt Core The changes proposed in this issue relate to dbt Core labels May 8, 2024
@dbeatty10 dbeatty10 changed the title Docs Changes Needed from dbt-core Issue #10053 The "unit_test" method May 8, 2024
@dbeatty10 dbeatty10 changed the title The "unit_test" method The "unit_test" selection method May 8, 2024
@dbeatty10 dbeatty10 added dbt-core v1.8 unit testing docs for 1.8 unit testing labels May 8, 2024
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 dbt Core The changes proposed in this issue relate to dbt Core dbt-core v1.8 improvement Use this when an area of the docs needs improvement as it's currently unclear unit testing docs for 1.8 unit testing
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants