Skip to content

Commit

Permalink
Merge branch 'current' into jerco/oss-expectations-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mirnawong1 authored May 31, 2024
2 parents 0396e7d + 3f7bd48 commit 5651533
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion website/docs/docs/build/unit-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ With dbt Core v1.8 and dbt Cloud environments that opt to "Keep on latest versio
- We currently only support adding unit tests to models in your _current_ project.
- We currently *don't* support unit testing models that use recursive SQL.
- You must specify all fields in a BigQuery STRUCT in a unit test. You cannot use only a subset of fields in a STRUCT.
- If your model has multiple versions, by default the unit test will run on *all* versions of your model. Read [unit testing versioned models](#unit-testing-versioned-models) for more information.
- If your model has multiple versions, by default the unit test will run on *all* versions of your model. Read [unit testing versioned models](/reference/resource-properties/unit-testing-versions) for more information.
- Unit tests must be defined in a YML file in your `models/` directory.
- Table names must be [aliased](/docs/build/custom-aliases) in order to unit test `join` logic.
- Redshift customers need to be aware of a [limitation when building unit tests](/reference/resource-configs/redshift-configs#unit-test-limitations) that requires a workaround.
Expand Down
4 changes: 2 additions & 2 deletions website/docs/reference/resource-properties/unit-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ To run only your unit tests, use the command:

- We currently only support unit testing SQL models.
- We currently only support adding unit tests to models in your _current_ project.
- If your model has multiple versions, by default the unit test will run on *all* versions of your model. Read [unit testing versioned models](#unit-testing-versioned-models) for more information.
- If your model has multiple versions, by default the unit test will run on *all* versions of your model. Read [unit testing versioned models](/reference/resource-properties/unit-testing-versions) for more information.
- Unit tests must be defined in a YML file in your `models/` directory.
- If you want to unit test a model that depends on an ephemeral model, you must use `format: sql` for that input.

Expand Down Expand Up @@ -135,4 +135,4 @@ unit_tests:
format: sql
fixture: valid_email_address_fixture_output

```
```
5 changes: 5 additions & 0 deletions website/vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
"cleanUrls": true,
"trailingSlash": false,
"redirects": [
{
"source": "/reference/resource-properties/unit-tests#unit-testing-versioned-models",
"destination": "/reference/resource-properties/unit-testing-versions",
"permanent": true
},
{
"source": "/docs/deploy/deploy-environments#partial-parsing",
"destination": "/docs/dbt-cloud-environments#partial-parsing",
Expand Down

0 comments on commit 5651533

Please sign in to comment.