dbt-labs / dbt-core

dbt enables data analysts and engineers to transform their data using the same practices that software engineers use to build applications.
https://getdbt.com
Apache License 2.0
9.68k stars 1.61k forks source link

Create parameterized test which tries each resource type with the `resource_type:` selector #10287

Closed QMalcolm closed 1 month ago

QMalcolm commented 3 months ago

Housekeeping

Short description

Sometimes we add a node and assume a fair amount of the dbt system functionality will come built in. In reality this isn't always the case. Sometimes we under assume, sometimes we over assume what comes by default. We want to build tests which automatically check all "inputs", even as that changes over time.

To that end, in this issue specifically, we want to test that all resource types that are supposed to be usable with the resource_type: selector don't break when used.

Acceptance criteria

Context

This would have helped catch issues like: https://github.com/dbt-labs/dbt-core/issues/9532

QMalcolm commented 3 months ago

From refinement:

QMalcolm commented 3 months ago

Source nodes aren't selectable by the --select "resouce_type:<resource_type> syntax. Unsure whether this is intentional or not (documentation)