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

Configure project to include only list of specific tests #511

Open
eilone opened this issue Nov 13, 2024 · 1 comment
Open

Configure project to include only list of specific tests #511

eilone opened this issue Nov 13, 2024 · 1 comment
Labels
awaiting_response enhancement New feature or request

Comments

@eilone
Copy link

eilone commented Nov 13, 2024

Describe the feature

A feature to allow users to selectively include specific tests (or models) when running dbt build --select package:dbt_project_evaluator. Currently, users can exclude certain tests using --exclude or the exclude_packages config, but there’s no straightforward way to run only a specific subset without manually specifying each test. This feature would support a selection filter within a package context, allowing for targeted test runs on specific tests within the dbt_project_evaluator package (or any other package) directly.

Describe alternatives you’ve considered

One alternative is to manually list each test to run, but this is not efficient or scalable for projects with many tests. Another approach is to tag specific tests within the package, but tagging must be customized and requires ongoing maintenance as tests are updated or added.

Additional context

This feature would be most relevant for large dbt projects where running all tests in a package can be time-consuming. It applies across databases and would improve dbt’s flexibility for selective testing in packages like dbt_project_evaluator, especially for teams who want more granular control over package execution.

Who will this benefit?

This feature will benefit dbt users who rely on packages like dbt_project_evaluator but need to run only specific tests, either for troubleshooting or partial test scenarios. For example, a user may want to run only performance-related tests or only schema validation tests within the evaluator package, without needing to run the entire set. This selective approach would enhance productivity and reduce resource usage.

Are you interested in contributing this feature?

No

@eilone eilone added enhancement New feature or request triage labels Nov 13, 2024
@b-per
Copy link
Collaborator

b-per commented Jan 16, 2025

Hi! Is it something that you could use the dbt YAML selectors for?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting_response enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants