-
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
Ct 2911 initial unit testing #8288
Conversation
commit 88eb4d6 Author: Gerda Shank <gerda@dbtlabs.com> Date: Thu Jul 20 13:25:49 2023 -0400 add @defer_state to unit-test in core/dbt/cli/main.py commit 1336104 Author: Gerda Shank <gerda@dbtlabs.com> Date: Thu Jul 20 11:24:32 2023 -0400 kludge to make mypy happy about parse_from_dict commit 2b264b2 Merge: 4dc6dd3 eeb0570 Author: Gerda Shank <gerda@dbtlabs.com> Date: Thu Jul 20 11:04:00 2023 -0400 Merge branch 'main' into arky/poc-unit-testing commit 4dc6dd3 Author: Chenyu Li <chenyu.li@dbtlabs.com> Date: Sat May 6 13:15:05 2023 -0700 copy nodes being referenced over commit e203efa Author: Michelle Ark <michelle.ark@dbtlabs.com> Date: Tue May 9 10:11:22 2023 -0400 postgres fix commit 05bd06f Author: Michelle Ark <michelle.ark@dbtlabs.com> Date: Mon May 8 02:38:26 2023 -0400 null input values commit e56538d Author: Michelle Ark <michelle.ark@dbtlabs.com> Date: Mon May 8 02:18:17 2023 -0400 override jinja context properties commit 43ba24f Author: Michelle Ark <michelle.ark@dbtlabs.com> Date: Mon May 8 02:07:35 2023 -0400 hacky lineage between unit tests commit 8d586d0 Author: Michelle Ark <michelle.ark@dbtlabs.com> Date: Mon May 8 01:12:17 2023 -0400 fix tests commit 19793eb Author: Michelle Ark <michelle.ark@dbtlabs.com> Date: Mon May 8 00:20:17 2023 -0400 fix --output json commit 4cf4710 Author: Michelle Ark <michelle.ark@dbtlabs.com> Date: Mon May 8 00:10:52 2023 -0400 remove manifest.add_unit_test commit 58aa0bd Author: Michelle Ark <michelle.ark@dbtlabs.com> Date: Mon May 8 00:06:39 2023 -0400 undo test_type:unit selector commit f8ce09c Author: Michelle Ark <michelle.ark@dbtlabs.com> Date: Mon May 8 00:02:51 2023 -0400 jinja refactoring commit 2c30116 Author: Michelle Ark <michelle.ark@dbtlabs.com> Date: Sun May 7 23:35:07 2023 -0400 more decoupling of unit test from other parsing/execution + overrides support commit ccc3ad3 Author: Michelle Ark <michelle.ark@dbtlabs.com> Date: Fri May 5 23:14:10 2023 -0400 fix manifest artifact commit 2c953b2 Author: Michelle Ark <michelle.ark@dbtlabs.com> Date: Fri May 5 23:12:11 2023 -0400 move parsing to UnitTestManifestLoader + requires commit 2184a4d Author: Michelle Ark <michelle.ark@dbtlabs.com> Date: Wed May 3 10:33:30 2023 -0400 better type handling commit f8bdd8b Author: Michelle Ark <michelle.ark@dbtlabs.com> Date: Sun Apr 30 22:00:52 2023 -0400 dbt.string_literal commit 8043106 Author: Michelle Ark <michelle.ark@dbtlabs.com> Date: Sun Apr 30 21:50:57 2023 -0400 polish up spec, get column schema from relation commit 0ab9222 Author: Michelle Ark <michelle.ark@dbtlabs.com> Date: Sun Apr 30 14:19:50 2023 -0400 first pass
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. |
Codecov Report
@@ Coverage Diff @@
## main #8288 +/- ##
==========================================
+ Coverage 86.29% 86.36% +0.06%
==========================================
Files 174 176 +2
Lines 25529 25864 +335
==========================================
+ Hits 22030 22337 +307
- Misses 3499 3527 +28
Flags with carried forward coverage won't be shown. Click here to find out more.
|
schemas/dbt/manifest/v9.json
Outdated
@@ -44,6 +44,9 @@ | |||
{ | |||
"$ref": "#/definitions/SnapshotNode" | |||
}, | |||
{ | |||
"$ref": "#/definitions/UnitTestNode" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's cut a manifest v11 for these changes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm updating to v11 manifest in another branch, because there's no point in doing that in multiple places. Will update to create a modified v11 once that's merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed the updates to the v9 manifest json schema. I decided to leave the v11 manifest without changes from this branch, because it doesn't look like they're actually needed at this point and we are probably going to not include UnitTestNodes in the current manifest definition, so might not be needed in the end anyway.
I've squashed this into "unit_testing_feature_branch", so this pull request will not need to be merged separately. |
resolves #8287
Problem
First cut of unit testing implementation. This will contain only minimal functionality, and will provide the base for a feature branch. This should include a new functional test directory and a few functional tests.
Checklist