Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify Docs for Disabling Tests #488

Open
1 of 6 tasks
segoldma opened this issue Sep 5, 2024 · 0 comments
Open
1 of 6 tasks

Clarify Docs for Disabling Tests #488

segoldma opened this issue Sep 5, 2024 · 0 comments
Assignees
Labels
bug Something isn't working triage

Comments

@segoldma
Copy link

segoldma commented Sep 5, 2024

Describe the bug

After installing the package and following the docs here to disable test materializations.

When running dbt build --select package:dbt_project_evaluator, I noticed that the number of nodes dropped from 78 to 71, but still included quite a few tests.

After updating my config to this, the number of nodes dropped to 49, and no longer included tests. In other words, I updated the tests path rather than the models path.

tests:
 dbt_project_evaluator:
   +enabled: false # disable test coverage suite

Happy to contribute this doc update if helpful (and assuming I'm not overlooking something silly).

Steps to reproduce

  1. Update dbt_project.yml with this:
models:
  dbt_project_evaluator:
    marts:
      tests:
        # disable entire test coverage suite
        +enabled: false
  1. Run dbt build --select package:dbt_project_evaluator

Expected results

dbt builds all models, but does not run any tests.

Actual results

build builds all models, and a subset of tests.

Screenshots and log output

System information

The contents of your packages.yml file:

  - package: dbt-labs/dbt_project_evaluator
    version: 0.14.0
    #github link: https://github.com/dbt-labs/dbt-project-evaluator

Which database are you using dbt with?

  • postgres
  • redshift
  • bigquery
  • snowflake
  • trino/starburst
  • other (specify: ____________)

The output of dbt --version:

Core:
  - installed: 1.8.3
  - latest:    1.8.6 - Update available!

  Your version of dbt-core is out of date!
  You can find instructions for upgrading here:
  https://docs.getdbt.com/docs/installation

Plugins:
  - snowflake: 1.8.3 - Up to date!

Additional context

Are you interested in contributing the fix?

@segoldma segoldma added bug Something isn't working triage labels Sep 5, 2024
@dave-connors-3 dave-connors-3 added this to the v1.0.0 milestone Oct 24, 2024
@b-per b-per removed this from the v1.0.0 milestone Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

4 participants