-
Notifications
You must be signed in to change notification settings - Fork 17
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
Setup shared tests #18
Conversation
…t is being tested
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.
Oh boy oh boy, add 'em up.
What was your criteria for core? Basically just listed out the files and imported all the classes that way? Just curious how we can keep ourselves honest here tracking wise and avoid missing any.
I did a simple ag "class Base"
(`grep -r . "class Base" or what have you) to highlight all the tests that should end up in this PR, you'd think.
Also, anything out of core's dbt-core/tests/adapter/setup.py
we want to import over to conftest or some such?
That's correct. I made it one to one between the directory in
I don't have a good way to do this, without perhaps running tests on
Were you able to find any that I missed?
This no longer exists, it was moved as part of |
I wrote a script to help with this. I grabbed all Base test names out of core:
|
Thanks, that provides a good way to verify that we have imported all tests where appropriate. I went through the base classes you turned up and accounted for why they are excluded. They fall into three catagories. Base classes with no test methods:
Base classes with test methods that assume configuration in inherited test classes (should not be run directly):
Functionality does not apply to Postgres:
This means that we imported all tests that apply to |
resolves #4
Problem
Most of the shared adapter zone integration tests were skipped since they were also executed from within the adapter zone instead of from within the functional testing directory. A handful of integration tests were implemented as expected.
Solution
dbt-tests-adapter
to allow all test bases to be imported (Create separate base classes for shared tests dbt-adapters#93)shared_tests
(open to suggestions)shared_tests
, also open to suggestions)Checklist