Open emmyoop opened 2 months ago
@emmyoop thanks for opening this issue and I'm very much on board with this initiative. Do you have an example of what the updates will be that are required, or is the plan for someone on your team to open a PR to incorporate the tests?
@fivetran-joemarkiewicz I’m planning to open a PR soon that will initially support only Postgres. Focusing on Postgres allows me to streamline the testing process by running everything locally, without needing to deal with authentication details. Adding on more adapters should be a fast follow since the basic testing infrastructure would already exists at that point.
In the meantime, I’ve created an example repo with the necessary changes at dbt-package-testing, if you’d like to take a look at what to expect!
Description
dbt Labs is running integration tests for popular open source packages as part of continuous testing and release of dbt.
Add support for testing this package using tox, as described in Standardizing integration tests for popular dbt packages.
Acceptance Criteria
/integration_tests
directory.supported_adapters.env
at the project root. The variableSUPPORTED_ADAPTERS
lists the supported adapters, separated by commas. (Note: Only adapters running in dbt Cloud are currently supported.)tox.ini
file using the naming patterntestenv:dbt_integration_<ADAPTER>
.profiles.yml
for integration tests uses specific naming conventions for the target and environment variables. Examples can be found in dbt-package-testing.Who will this benefit?
This change will enable:
Final Note
dbt Labs will commence running tests only after the new tests have been released and are available in the latest package version on the hub.