Skip to content

feature: adding smarter unit test execution - #5966

Open
cmgoffena13 wants to merge 5 commits into
SQLMesh:mainfrom
cmgoffena13:feature/smarter-unit-tests
Open

feature: adding smarter unit test execution#5966
cmgoffena13 wants to merge 5 commits into
SQLMesh:mainfrom
cmgoffena13:feature/smarter-unit-tests

Conversation

@cmgoffena13

@cmgoffena13 cmgoffena13 commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

Description

During plan, run unit tests only for models in the plan change set (added, modified, restated).
No-change plans skip tests by default.
--all-tests runs the full suite (previous default).

Addresses #5965

Test Plan

  • Plan with model changes runs only those models’ unit tests
  • Plan with no changes skips unit tests
  • --all-tests runs the full suite (including no-change plans)
  • --skip-tests still skips; incompatible with --all-tests
  • Docs cover plan-scoped default and --all-tests

Checklist

  • I have run make style and fixed any issues
  • I have added tests for my changes (if applicable)
  • All existing tests pass (make fast-test)
  • My commits are signed off (git commit -s) per the DCO

Signed-off-by: Cortland Goffena <30168413+cmgoffena13@users.noreply.github.com>
Signed-off-by: Cortland Goffena <30168413+cmgoffena13@users.noreply.github.com>
Signed-off-by: Cortland Goffena <30168413+cmgoffena13@users.noreply.github.com>
…ow too

Signed-off-by: Cortland Goffena <30168413+cmgoffena13@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

1 participant