Skip to main content

Can I store my data tests in a directory other than the `tests` directory in my project?

By default, dbt expects your singular data test files to be located in the tests subdirectory of your project, and generic data test definitions to be located in tests/generic or macros.

To change this, update the test-paths configuration in your dbt_project.yml file, like so:

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

Then, you can define generic data tests in my_cool_tests/generic/, and singular data tests everywhere else in my_cool_tests/.

0