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

[Feature] Ability to override how test names are generated #11348

Open
3 tasks done
mroy-seedbox opened this issue Mar 3, 2025 · 0 comments
Open
3 tasks done

[Feature] Ability to override how test names are generated #11348

mroy-seedbox opened this issue Mar 3, 2025 · 0 comments
Labels
enhancement New feature or request triage

Comments

@mroy-seedbox
Copy link

mroy-seedbox commented Mar 3, 2025

Is this your first time submitting a feature request?

  • I have read the expectations for open source contributors
  • I have searched the existing issues, and I could not find an existing issue for this feature
  • I am requesting a straightforward extension of existing dbt functionality, rather than a Big Idea better suited to a discussion

Describe the feature

When testing models with a lot of tests (dozens), it becomes very difficult to target one single generic test (especially when the parameters change during development, which also changes the name of the test).

It would be good to be able to override how the test names are generated so that we can give them more static names. We already have generate_database_name, generate_schema_name, and generate_alias_name which we can use in order to override their respective counterpart.

All we would need is the ability to specify an override for test names with a macro named generate_test_name.

It would also allow us to give generic tests cleaner names than how they are currently generated.

Describe alternatives you've considered

  • Run all of the tests every single time, but this slows down the development cycle.
  • We can hardcode a custom name for each test, but this adds a lot of overhead.

Who will this benefit?

People who use a lot of generic tests.

@mroy-seedbox mroy-seedbox added enhancement New feature or request triage labels Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage
Projects
None yet
Development

No branches or pull requests

1 participant