dbt test to execute tests and see actual results
Run dbt test to execute tests and generate results.
dbt test
dbt test --store-failures
Results are read from target/run_results.json
Add tests to improve coverage. Example:
Coverage is calculated from manifest.json
dbt compile
dbt run
Generates target/manifest.json with test data
| Model | Type | Materialization | Dependencies | Description |
|---|---|---|---|---|
| {{ node.name }} | {{ node.resource_type }} | {{ node.materialized }} | {% for edge in lineage.edges %} {% if edge.to == node_id %} {{ edge.from.split('.')[-1] }} {% endif %} {% endfor %} |
Run dbt compile to generate manifest.json with lineage information
Your dbt project is healthy!
| Level | Model | Message |
|---|---|---|
| {{ finding.level }} | {{ finding.model }} |
{{ finding.message }}
{% if finding.details.line %}
{{ finding.details.file }}:{{ finding.details.line }}
{% endif %}
{% if finding.details.fix %}
{{ finding.details.fix }}
{% endif %}
|
No source definitions found in your project