Skip to content

Commit

Permalink
Fix resource-type (#5935)
Browse files Browse the repository at this point in the history
## What are you changing in this pull request and why?

Fix typo for `resource-type`. 

- `data_test` should still be `test` 
- added new example for `test` 

## Checklist
- [x] Review the [Content style
guide](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/content-style-guide.md)
so my content adheres to these guidelines.
- [x] For [docs
versioning](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#about-versioning),
review how to [version a whole
page](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#adding-a-new-version)
and [version a block of
content](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#versioning-blocks-of-content).
- [x] Need PM review
  • Loading branch information
nghi-ly authored Aug 19, 2024
1 parent 81b7c04 commit 0a45f67
Showing 1 changed file with 27 additions and 17 deletions.
44 changes: 27 additions & 17 deletions website/docs/reference/global-configs/resource-type.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

</VersionBlock>
Expand All @@ -64,38 +64,48 @@ 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:

<File name='Usage'>
<File name='Usage'>

```text
dbt build --resource-type snapshot
```
```text
dbt build --resource-type snapshot
```
</File>
</File>
<VersionBlock firstVersion="1.7">
- In this example, run the following command to include _all_ saved queries with the `--resource-type` flag:
<File name='Usage'>
<File name='Usage'>
```text
dbt build --resource-type saved_query
```
```text
dbt build --resource-type saved_query
```
</File>
</File>
</VersionBlock>
<VersionBlock firstVersion="1.8">
- 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:
<File name='Usage'>
```text
dbt build --exclude-resource-type unit_test
```
</File>
- In this example, use the following command to include all data tests in your build process:
<File name='Usage'>
<File name='Usage'>
```text
dbt build --exclude-resource-type unit_test
```
```text
dbt build --resource-type test
```
</File>
</File>
</VersionBlock>

0 comments on commit 0a45f67

Please sign in to comment.