Skip to content

Commit

Permalink
We currently don't support unit testing models that use the `material…
Browse files Browse the repository at this point in the history
…ized view` materialization (#5986)

[Preview](https://docs-getdbt-com-git-dbeatty10-patch-1-dbt-labs.vercel.app/docs/build/unit-tests#before-you-begin)

## What are you changing in this pull request and why?

We currently don't support unit testing models that use the
[`materialized
view`](https://docs.getdbt.com/docs/build/materializations#materialized-view)
materialization=

See dbt-labs/dbt-postgres#111

## 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.

---------

Co-authored-by: Mirna Wong <[email protected]>
  • Loading branch information
dbeatty10 and mirnawong1 authored Aug 29, 2024
1 parent 469025b commit 9098144
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion website/docs/docs/build/unit-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ With dbt Core v1.8 and dbt Cloud environments that have gone versionless by sele

- We currently only support unit testing SQL models.
- 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.
- We currently _don't_ support unit testing models that use the [`materialized view`](/docs/build/materializations#materialized-view) materialization.
- 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](/reference/resource-properties/unit-testing-versions) for more information.
- Unit tests must be defined in a YML file in your `models/` directory.
Expand Down

0 comments on commit 9098144

Please sign in to comment.