EqualExperts / dbt-unit-testing

This dbt package contains macros to support unit testing that can be (re)used across dbt projects.
MIT License
413 stars 77 forks source link

Feature request : allow overriding variables #202

Open NicolasGuary opened 8 months ago

NicolasGuary commented 8 months ago

Would it be possible to implement a mechanism that allows to override a variable ? In our current setup we need to select specific tests in the CI and pass them variables using CLI, which is not really maintainable with a lot of test cases...

Thank you!

NicolasGuary commented 8 months ago

(This is mentioned as a P0 in dbt-core unit testing feature : https://github.com/dbt-labs/dbt-core/discussions/8275#:~:text=The%20ability%20to%20configure%20overrides%20of%20macros%2C%20vars%2C%20or%20environment%20variables%20for%20a%20given%20unit%20test)