Skip to content

Commit

Permalink
Enabled support in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewshaver committed Mar 3, 2025
1 parent 56794f7 commit 14c292b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,4 @@ We also made some quality-of-life improvements in Core 1.9, enabling you to:
- Document [data tests](/reference/resource-properties/description).
- Use `ref` and `source` in [foreign key constraints](/reference/resource-properties/constraints).
- Use `dbt test` with the `--resource-type` / `--exclude-resource-type` flag, making it possible to include or exclude data tests (`test`) or unit tests (`unit_test`).
- The [`enabled`](/reference/resource-configs/enabled) config is now available for unit tests. Defaults to `true` if not defined.
1 change: 1 addition & 0 deletions website/docs/reference/resource-properties/unit-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ unit_tests:
config:
meta: {dictionary}
tags: <string> | [<string>]
enabled: {boolean} #optional v1.9+. If not configured, defaults to `true`
given:
- input: <ref_or_source_call> # optional for seeds
format: dict | csv | sql
Expand Down

0 comments on commit 14c292b

Please sign in to comment.