Files
dbt-project-evaluator/models/marts/tests/testing.yml
2025-08-14 09:04:34 +02:00

30 lines
1.2 KiB
YAML

version: 2
models:
- name: fct_test_coverage
description: this model shows a few key metrics related to how well tested your dbt project is.
columns:
- name: test_to_model_ratio
description: the total number of tests in the project divided by the total number of models in the project
# data_tests:
# - dbt_utils.accepted_range:
# min_value: 1
# severity: warn
- name: test_coverage_pct
description: the number of models in the project with at least one test configured divided by the total number of models in the project
data_tests:
- dbt_utils.accepted_range:
name: valid_test_coverage
config:
severity: warn
arguments:
min_value: "{{ var('test_coverage_target') }}"
- name: fct_missing_primary_key_tests
description: this model has one record for every model without unique and not null tests configured on a single column
data_tests:
- is_empty
- name: fct_sources_without_freshness
description: This table shows each source that does not have a source freshness defined, either as a warn or an error
data_tests:
- is_empty