From 5aacd09ffdcfb373c0d1b9788666aef9090a663c Mon Sep 17 00:00:00 2001 From: Matt Shaver <60105315+matthewshaver@users.noreply.github.com> Date: Fri, 26 Apr 2024 20:21:11 -0400 Subject: [PATCH] Unit tests don't support recursive SQL (#5364) ## What are you changing in this pull request and why? Closes https://github.com/dbt-labs/docs.getdbt.com/issues/5353 ## 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). - [ ] Add a checklist item for anything that needs to happen before this PR is merged, such as "needs technical review" or "change base branch." --------- Co-authored-by: Leona B. Campbell <3880403+runleonarun@users.noreply.github.com> --- website/docs/docs/build/unit-tests.md | 1 + 1 file changed, 1 insertion(+) diff --git a/website/docs/docs/build/unit-tests.md b/website/docs/docs/build/unit-tests.md index 59e9f3adce5..7156ff3bc48 100644 --- a/website/docs/docs/build/unit-tests.md +++ b/website/docs/docs/build/unit-tests.md @@ -22,6 +22,7 @@ Now, we are introducing a new type of test to dbt - unit tests. In software prog ## Before you begin - We currently only support unit testing SQL models. +- We currently don't support unit testing models that use recursive SQL. - 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. - Unit tests must be defined in a YML file in your `models/` directory.