-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable
--resource-type
and --exclude-resource-type
CLI flags and …
…environment variables for `dbt test` (#10706) * Adding logic to TestSelector to remove unit tests if they are in excluded_resource_types * Adding change log * Respect `--resource-type` and `--exclude-resource-type` CLI flags and associated environment variables * Test CLI flag for excluding unit tests for the `dbt test` command * Satisy isort pre-commit hook * Fix mypy for positional argument "resource_types" in call to "TestSelector" * Replace `TestSelector` with `ResourceTypeSelector` * Add co-author * Update changelog description * Add functional tests for new feature * Compare the actual results, not just the count * Remove test case covered elsewhere * Test for `DBT_EXCLUDE_RESOURCE_TYPES` environment variable for `dbt test` * Update per pre-commit hook * Restore to original form (until we refactor extraneous `ResourceTypeSelector` references later) --------- Co-authored-by: Matthew Cooper <[email protected]>
- Loading branch information
1 parent
a854272
commit 574e2d0
Showing
6 changed files
with
65 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: Features | ||
body: Enable `--resource-type` and `--exclude-resource-type` CLI flags and environment variables for `dbt test` | ||
time: 2024-09-03T13:24:28.592837+01:00 | ||
custom: | ||
Author: TowardOliver dbeatty10 | ||
Issue: "10656" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters