From b6f42e92fb7c9ce95fc6115b22b9910a8bc853df Mon Sep 17 00:00:00 2001 From: Ly Nguyen Date: Fri, 16 Aug 2024 11:26:49 -0700 Subject: [PATCH 1/2] Fix resource-type --- .../docs/reference/global-configs/resource-type.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/website/docs/reference/global-configs/resource-type.md b/website/docs/reference/global-configs/resource-type.md index eb3562b5175..245610d9e1e 100644 --- a/website/docs/reference/global-configs/resource-type.md +++ b/website/docs/reference/global-configs/resource-type.md @@ -53,7 +53,7 @@ The available resource types are: - [`semantic_model`](/docs/build/semantic-models) - [`snapshot`](/docs/build/snapshots) - [`source`](/docs/build/sources) -- [`data_test`](/docs/build/data-tests) +- [`test`](/docs/build/data-tests) - [`unit_test`](/docs/build/unit-tests) @@ -88,7 +88,7 @@ dbt build --resource-type saved_query -- In this example, use the following command to exclude _all_ unit tests, from your dbt build process. Note that the `--exclude-resource-type` flag is only available in dbt version 1.8 and higher: +- In this example, use the following command to exclude _all_ unit tests from your dbt build process. Note that the `--exclude-resource-type` flag is only available in dbt version 1.8 and higher: @@ -98,4 +98,14 @@ dbt build --exclude-resource-type unit_test +- In this example, use the following command to include all data tests in your build process: + + + +```text +dbt build --resource-type test +``` + + + From 0035c48b9218befd474f09e7fd745440c2642a05 Mon Sep 17 00:00:00 2001 From: Ly Nguyen Date: Fri, 16 Aug 2024 11:43:42 -0700 Subject: [PATCH 2/2] Indent examples to align with bullet list --- .../reference/global-configs/resource-type.md | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/website/docs/reference/global-configs/resource-type.md b/website/docs/reference/global-configs/resource-type.md index 245610d9e1e..25ef426a6a7 100644 --- a/website/docs/reference/global-configs/resource-type.md +++ b/website/docs/reference/global-configs/resource-type.md @@ -64,25 +64,25 @@ Instead of targeting specific resources, use the `--resource-flag` or `--exclude - For example, use the following command to include _all_ snapshots from your dbt build process: - + -```text -dbt build --resource-type snapshot -``` + ```text + dbt build --resource-type snapshot + ``` - + - In this example, run the following command to include _all_ saved queries with the `--resource-type` flag: - + -```text -dbt build --resource-type saved_query -``` + ```text + dbt build --resource-type saved_query + ``` - + @@ -90,22 +90,22 @@ dbt build --resource-type saved_query - In this example, use the following command to exclude _all_ unit tests from your dbt build process. Note that the `--exclude-resource-type` flag is only available in dbt version 1.8 and higher: - + -```text -dbt build --exclude-resource-type unit_test -``` + ```text + dbt build --exclude-resource-type unit_test + ``` - + - In this example, use the following command to include all data tests in your build process: - + -```text -dbt build --resource-type test -``` + ```text + dbt build --resource-type test + ``` - +