[Bug] If a test is added before a model is written, partial parsing will not find the test until a full reparse #10461
Labels
bug
Something isn't working
dbt tests
Issues related to built-in dbt testing functionality
partial_parsing
Is this a new bug in dbt-core?
Current Behavior
If you wrote a test first, parse the project, then wrote the model, dbt will not actually run the test due to partial parsing.
Expected Behavior
Even with partial parsing, dbt should know to run the test even if written prior to the model file.
Steps To Reproduce
target/
:^ Notice no "test" was identified.
Relevant log output
No response
Environment
Which database adapter are you using with dbt?
postgres
Additional Context
In dbt Cloud, every save action does a parse. So if a user was practicing TDD - I guess write the test first :P then they could run into this scenario.
https://dbt-labs.slack.com/archives/C02SRNY2EQ4/p1721245567642059
The text was updated successfully, but these errors were encountered: