Skip to content

Commit

Permalink
Remove recursion from unit test scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
dbeatty10 authored Apr 12, 2024
1 parent 63f080f commit 272417d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions website/docs/docs/build/unit-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ You should unit test a model:
- Window functions
- `case when` statements when there are many `when`s
- Truncation
- Recursion
- When you're writing custom logic to process input data, similar to creating a function.
- We don't recommend conducting unit testing for functions like `min()` since these functions are tested extensively by the warehouse. If an unexpected issue arises, it's more likely a result of issues in the underlying data rather than the function itself. Therefore, fixture data in the unit test won't provide valuable information.
- Logic for which you had bugs reported before.
Expand Down Expand Up @@ -287,4 +286,4 @@ There is currently no way to unit test whether the dbt framework inserted/merged
- [Unit testing versioned models](/reference/resource-properties/unit-testing-versions)
- [Unit test inputs](/reference/resource-properties/unit-test-input)
- [Unit test overrides](/reference/resource-properties/unit-test-overrides)
- [Platform-specific data types](/reference/resource-properties/data-types)
- [Platform-specific data types](/reference/resource-properties/data-types)

0 comments on commit 272417d

Please sign in to comment.