Skip to content

Commit

Permalink
Run tests on the build command as well
Browse files Browse the repository at this point in the history
  • Loading branch information
psousa50 committed Jan 17, 2024
1 parent fd0b959 commit 5be2a9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macros/tests.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{{ dbt_unit_testing.ref_tested_model(model_name) }}

{% if execute %}
{% if flags.WHICH == 'test' %}
{% if flags.WHICH in ('test', 'build') %}
{{ dbt_unit_testing.set_test_context("is_incremental_should_be_true_for_this_model", "") }}
{% set mocks_and_expectations_json_str = caller() %}
{% set model_version = kwargs["version"] | default(kwargs["v"]) | default(none) %}
Expand Down

0 comments on commit 5be2a9e

Please sign in to comment.