mirror of
https://github.com/dbt-labs/dbt-project-evaluator.git
synced 2025-12-18 02:11:27 +00:00
47 lines
1.5 KiB
YAML
47 lines
1.5 KiB
YAML
version: 2
|
|
|
|
seeds:
|
|
- name: test_fct_missing_primary_key_tests
|
|
data_tests:
|
|
- dbt_utils.equality:
|
|
config:
|
|
name: equality_fct_missing_primary_key_tests
|
|
arguments:
|
|
compare_model: ref('fct_missing_primary_key_tests')
|
|
exclude_columns:
|
|
- resource_type
|
|
- model_type
|
|
|
|
- name: test_fct_test_coverage
|
|
config:
|
|
column_types:
|
|
test_coverage_pct: &float "{{ 'float' if target.type not in ['athena', 'trino'] else 'double' }}"
|
|
staging_test_coverage_pct: *float
|
|
intermediate_test_coverage_pct: *float
|
|
marts_test_coverage_pct: *float
|
|
other_test_coverage_pct: *float
|
|
data_tests:
|
|
- dbt_utils.equality:
|
|
config:
|
|
name: equality_fct_test_coverage
|
|
arguments:
|
|
compare_model: ref('fct_test_coverage')
|
|
compare_columns:
|
|
- total_models
|
|
- total_tests
|
|
- tested_models
|
|
- "{{ 'test_coverage_pct' if not target.name in ['duckdb', 'databricks', 'trino'] else 'tested_models' }}"
|
|
- test_to_model_ratio
|
|
- staging_test_coverage_pct
|
|
- intermediate_test_coverage_pct
|
|
- marts_test_coverage_pct
|
|
- other_test_coverage_pct
|
|
|
|
- name: test_fct_sources_without_freshness
|
|
data_tests:
|
|
- dbt_utils.equality:
|
|
config:
|
|
name: equality_fct_sources_without_freshness
|
|
arguments:
|
|
compare_model: ref('fct_sources_without_freshness')
|