-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[CT-3099] Commands & configs naming changes: expansion of dbt testing coverage #8606
Comments
From refinement: In order to support:
we'd likely to the if/else routing for task setup somewhere here, which would make it difficult with our current click setup to differentiate between which options are supported for which subcommand (--unit or --data). But on the flip side, defining these as click subcommands ( |
^ @MichelleArk as discussed, let's spike the options to understand the technical challenges of them:
For all of these, we'd want to maintain legacy |
If we move to config name as What would the implications be of switching to something like this:
where "model" is a property of a given unit test, instead of defining all unit tests underneath a single model. |
Notes from refinement:
|
I think next steps here is to open some smaller implementation tickets for each of the naming changes @dbeatty10
|
Outcome of the spike #8651 -> unit tests and data tests are types of tests that can be selected using |
Description
With the introduction of new dbt unit tests, we will need to adjust the naming conventions of our current dbt tests to avoid confusion.
Here's how I'm thinking about the distinction. We are expanding our testing coverage to include both:
Commands
From the outcome of this spike, we will use the following commands for each type of test:
dbt test --select test_type:data
dbt test --select test_type:unit
test_type
s will be includeddbt build
anddbt list
Configs
I propose we leave
test-paths
as is, and specify that csv fixtures for unit tests must be defined intests/fixtures
, just like generic test macros must be defined intests/generic
. Thetest-paths
folder(s) is for all the "reusable bits" of dbt tests and singular data tests.We will also make a few changes to the model yml configurations:
and the dbt_project.yml configuration:
Note: for backward compatibility
tests:
will be an alias fordata_tests:
/data-tests:
but we will eventually deprecatetests:
Docs
We will need to do an analysis of all places where docs (both dbt docs, explorer, and our documentation website) need to be updated for this change.
Note: the config naming changes will impact the IDE shortcuts for yml generation
The text was updated successfully, but these errors were encountered: