-
Notifications
You must be signed in to change notification settings - Fork 984
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* rpc, migration guide updates * Deprecate BQ date-partitioned tables * dbt init rework * Generic tests in tests/generic * Update website/docs/docs/contributing/building-a-new-adapter.md Co-authored-by: Niall Woodward <niall@niallrees.com> * Update website/docs/reference/commands/init.md Co-authored-by: Niall Woodward <niall@niallrees.com> Co-authored-by: Niall Woodward <niall@niallrees.com>
- Loading branch information
Showing
11 changed files
with
133 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
--- | ||
title: Can I store my data tests in a directory other than the `tests` directory in my project? | ||
title: Can I store my tests in a directory other than the `tests` directory in my project? | ||
--- | ||
By default, dbt expects your singular test files to be located in the `tests` subdirectory of your project. | ||
By default, dbt expects your singular test files to be located in the `tests` subdirectory of your project, and generic test definitions to be located in `tests/generic` or `macros`. | ||
|
||
To change this, update the [test-paths](reference/project-configs/test-paths.md) configuration in your `dbt_project.yml` | ||
file, like so: | ||
|
||
<File name='dbt_project.yml'> | ||
|
||
```yml | ||
test-paths: ["data-tests"] | ||
test-paths: ["my_cool_tests"] | ||
``` | ||
</File> | ||
Then, you can define generic tests in `my_cool_tests/generic/`, and singular tests everywhere else in `my_cool_tests/`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.