SpinTheMic
Pro

Explain it in 60 seconds

Singular vs generic tests

Data Engineering · dbt · Intermediate

What is the difference between singular tests and custom generic tests in dbt?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Singular tests are one-off SQL files in the tests folder that return failing rows.
  • Generic tests are parameterized and reusable across columns and models.
  • Custom generic tests are written with a test block in macros or tests/generic.
  • Use singular tests for specific business rules.
  • Use generic tests for patterns you repeat, like positive values.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics