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

Rename config block test -> data-tests #9072

Closed
wants to merge 42 commits into from
Closed

Conversation

emmyoop
Copy link
Member

@emmyoop emmyoop commented Nov 14, 2023

resolves #8699

Problem

Tests is a confusing config block name with unit-tests in the mix now.

Solution

Support data-tests as the tests config while still allowing tests, but deprecate it.

Checklist

  • I have read the contributing guide and understand what's expected of me
  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • This PR has no interface changes (e.g. macros, cli, logs, json artifacts, config files, adapter interface, etc) or this PR has already received feedback and approval from Product or DX
  • This PR includes type annotations for new and modified functions

gshank and others added 23 commits August 14, 2023 16:04
* WIP

* remove breakpoint

* fix tests, fix schema
* use unit test name as top level

* remove breakpoints

* finish converting tests

* fix unit test node name

* breakpoints

* fix partial parsing bug

* comment out duplicate test

* fix test and make unique id match other uniqu id patterns

* clean up

* fix incremental test

* Update tests/functional/unit_testing/test_unit_testing.py
* WIP

* adding tests

* fix tests

* more tests

* fix broken tests

* fix broken tests

* change to csv extension

* fix unit test yaml

* add mixed inline and file csv test

* add mixed inline and file csv test

* additional changes

* read file directly

* some cleanup and soem test fixes - wip

* fix test

* use better file searching

* fix final test

* cleanup

* use absolute path and fix tests
@cla-bot cla-bot bot added the cla:yes label Nov 14, 2023
@emmyoop emmyoop changed the base branch from main to unit_testing_feature_branch November 14, 2023 14:26
Copy link
Contributor

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.

@emmyoop emmyoop force-pushed the er/8699-config-block-names branch from 82eaaf8 to 1a908b6 Compare November 14, 2023 15:46
jtcohen6 and others added 3 commits November 14, 2023 13:42
* Add unit tests to state:modified selection

* Get defer working too yolo

* Refactor per marky suggestion

* Add changelog

* separate out unit test state tests + fix csv fixture tests

* formatting

* detect changes to fixture files with state:modified

---------

Co-authored-by: Michelle Ark <[email protected]>
MichelleArk and others added 16 commits November 15, 2023 11:27
…fied in YAML config (#9064)

Co-authored-by: Michelle Ark <[email protected]>
Fix #8652: Use seed value if rows not specified
* Switch to using 'test' command instead of 'unit-test'

* Remove old unit test

* Put daff changes into task/test.py

* changie

* test_type:unit

* Add unit test to build and make test

* Select test_type:data

* Add unit tets to test_graph_selector_methods.py

* Fix fqn to incude path components

* Update build test

* Remove part of message in test_csv_fixtures.py that's different on Windows

* Rename build test directory
@emmyoop emmyoop force-pushed the er/8699-config-block-names branch from 29bda75 to 32f9ada Compare November 30, 2023 14:33
Copy link

codecov bot commented Nov 30, 2023

Codecov Report

Attention: 12 lines in your changes are missing coverage. Please review.

Comparison is base (3f1ed23) 86.85% compared to head (32f9ada) 79.53%.

Files Patch % Lines
core/dbt/parser/schemas.py 62.50% 6 Missing ⚠️
core/dbt/parser/common.py 72.72% 3 Missing ⚠️
core/dbt/contracts/project.py 75.00% 2 Missing ⚠️
core/dbt/compilation.py 75.00% 1 Missing ⚠️
Additional details and impacted files
@@                       Coverage Diff                       @@
##           unit_testing_feature_branch    #9072      +/-   ##
===============================================================
- Coverage                        86.85%   79.53%   -7.33%     
===============================================================
  Files                              180      180              
  Lines                            27083    27122      +39     
===============================================================
- Hits                             23524    21571    -1953     
- Misses                            3559     5551    +1992     
Flag Coverage Δ
integration 72.97% <83.62%> (-10.87%) ⬇️
unit 64.73% <73.27%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gshank gshank force-pushed the unit_testing_feature_branch branch 2 times, most recently from 8fbbb65 to 56dfb34 Compare January 2, 2024 22:53
Base automatically changed from unit_testing_feature_branch to main January 16, 2024 22:37
@emmyoop emmyoop closed this Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CT-3147] [Implementation] update config block names for data tests and unit tests
5 participants