-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
convert test to data_test #9201
convert test to data_test #9201
Conversation
Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide. |
1b9b371
to
5d4e67b
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## unit_testing_feature_branch #9201 +/- ##
================================================================
- Coverage 86.89% 64.85% -22.05%
================================================================
Files 180 180
Lines 27127 27171 +44
================================================================
- Hits 23572 17621 -5951
- Misses 3555 9550 +5995
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@graciegoheen The ticket that's referenced is contradictory about whether the config key in yaml should be "data-tests" or "data_tests". Which do you want in schema.yml? |
@gshank My understanding was that it had to have Let me know if that understanding was incorrect. |
Using dash in the |
@emmyoop To confirm for our docs - we're using underscores for |
@graciegoheen yes! Underscores everywhere for Nothing else was modified that's called out in #9235. |
* Initial implementation of unit testing (from pr #2911) Co-authored-by: Michelle Ark <[email protected]> * 8295 unit testing artifacts (#8477) * unit test config: tags & meta (#8565) * Add additional functional test for unit testing selection, artifacts, etc (#8639) * Enable inline csv format in unit testing (#8743) * Support unit testing incremental models (#8891) * update unit test key: unit -> unit-tests (#8988) * convert to use unit test name at top level key (#8966) * csv file fixtures (#9044) * Unit test support for `state:modified` and `--defer` (#9032) Co-authored-by: Michelle Ark <[email protected]> * Allow use of sources as unit testing inputs (#9059) * Use daff for diff formatting in unit testing (#8984) * Fix #8652: Use seed file from disk for unit testing if rows not specified in YAML config (#9064) Co-authored-by: Michelle Ark <[email protected]> Fix #8652: Use seed value if rows not specified * Move unit testing to test and build commands (#9108) * Enable unit testing in non-root packages (#9184) * convert test to data_test (#9201) * Make fixtures files full-fledged members of manifest and enable partial parsing (#9225) * In build command run unit tests before models (#9273) --------- Co-authored-by: Michelle Ark <[email protected]> Co-authored-by: Michelle Ark <[email protected]> Co-authored-by: Emily Rockman <[email protected]> Co-authored-by: Jeremy Cohen <[email protected]> Co-authored-by: Kshitij Aranke <[email protected]>
resolves #8699
Problem
With the addition of
unit_tests
the config fortests
is confusing as it currently does not include unit_tests, only data_tests.Solution
Explicitly define data_tests as data_tests in both schema files and in
dbt_project.yml
.Also updated
unit-tests
to beunit_tests
indbt_project.yml
for consistency.Continue to support the
tests
config for backwards compatibility but add a deprecation warning for it.Checklist