Add a new selection method for unit_test:
#10053
Labels
backport 1.8.latest
list
related to the dbt list command
node selection
Functionality and syntax for selecting DAG nodes
unit tests
Issues related to built-in dbt unit testing functionality
user docs
[docs.getdbt.com] Needs better documentation
Originally posted by @graciegoheen in #9895 (comment)
Housekeeping
Short description
There should be a selection method for unit tests (
unit_test:
), and the output ofdbt ls
should be usable withdbt test --select {unit test selection method}
.Acceptance criteria
dbt list
still includes:dbt ls --select unit_test:my_project.my_unit_test
includes:dbt run --select unit_test:my_project.my_unit_test
does nothingdbt test --select unit_test:my_project.my_unit_test
executes a single node -- the unit testdbt build --select unit_test:my_project.my_unit_test
executes a single node -- the unit testresolves #9895 resolves #10053
, it will accomplish that goal.user docs
label opens an issue in the docs.getdbt.com repoSuggested Tests
Although the following two proposed tests cover independent expected behaviors, they can be combined into a single test if desired.
Test 1
dbt list --select {mode_name} --output json --quiet
unique_id
valueTest 2
Do the following steps:
dbt list --select {mode_name} --output json --quiet
dbt test --select {unique_id}
Impact to Other Teams
Unknown.
Will backports be required?
No.
Context
#9895
The text was updated successfully, but these errors were encountered: