Skip to main content

test-paths

dbt_project.yml
test-paths: [directorypath]

Definition#

Optionally specify a custom list of directories where data tests are located.

Default#

Without specifying this config, dbt will search for data tests in the test directory, i.e. test-paths: ["test"].

However, the dbt init command sets most projects to use test-paths: ["tests"] — check your dbt_project.yml file to see if a value is set for your project.

Examples#

Use a subdirectory named tests instead of test for data tests#

This is the value generated by the dbt init command (source).

dbt_project.yml
test-paths: ["tests"]