test-paths
dbt_project.yml
test-paths: [directorypath]
Definition
Optionally specify a custom list of directories where singular tests are located.
Default
Without specifying this config, dbt will search for tests in the tests
directory, i.e. test-paths: ["tests"]
. Specifically, it will look for .sql
files containing:
- Generic test definitions in the
tests/generic
subdirectory - Singular tests (all other files)
Examples
Use a subdirectory named custom_tests
instead of tests
for data tests
dbt_project.yml
test-paths: ["custom_tests"]
0