v0.2.0
dbt-unit-testing v0.2.0 - Aug 4, 2022
🚨 Breaking changes
The mocking strategies were deprecated.
We added two options to accomplish more or less the same results:
- use_database_models
- include_missing_columns
To help you to migrate from the older mocking strategies take a look at the following table that contains the new options correspondence:
Mocking Strategy (deprecated) | use_database_models | include_missing_columns |
---|---|---|
Pure | FALSE | FALSE |
Full | FALSE | TRUE |
Simplified | TRUE | FALSE |
Database | TRUE | TRUE |
The default behaviour of the framework (both options set to FALSE) is equivalent to the old Pure mocking strategy.
New Features
- Add support for dbt version v1.3
- Add an option to use existing database models
- Add an option to include missing columns in mocks
- Add an option to qualify sources on CTEs
- Add support for comments at the end of the models' SQL
Fixes
- Fix bug when comparing expectations with identical rows (Bigquery only)