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

[CT-3046] Enable use of state:modified for detecting changed unit tests #8517

Closed
Tracked by #8283
gshank opened this issue Aug 30, 2023 · 0 comments
Closed
Tracked by #8283
Assignees

Comments

@gshank
Copy link
Contributor

gshank commented Aug 30, 2023

Description

We can select unit tests using state:modified for changes to existing models.

In addition we'd like to be able to select unit tests that have changed using state:modified.

Changes include:

  • Definition of the unit test
  • Changes to the inputs(ie: fixtures)
  • Changes to the logic of the model the unit test is for (depending on indirect_selection config)

Acceptance Criteria

Change only the contents of a unit test definition, and do dbt unit-test --select state:modified and the changed unit test should run.

Change the SQL for a given model and do dbt unit-test --select state:modified, the unit test on the changed model should run (depending on indirect_selection config)

Impact to other teams

None

Will backports be required?

No

Context

@github-actions github-actions bot changed the title Enable use of state:modified for detecting changed unit tests [CT-3046] Enable use of state:modified for detecting changed unit tests Aug 30, 2023
@graciegoheen graciegoheen assigned gshank and unassigned gshank Nov 7, 2023
@jtcohen6 jtcohen6 self-assigned this Nov 7, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants