z3z1ma / dbt-osmosis

Provides automated YAML management, a dbt server, streamlit workbench, and git-integrated dbt model output diff tools
https://z3z1ma.github.io/dbt-osmosis/
Apache License 2.0
422 stars 45 forks source link

Modify existing tests or rewrite new tests #93

Closed syou6162 closed 9 months ago

syou6162 commented 9 months ago

@z3z1ma As mentioned here, I am considering writing tests for dbt-osmosis. I discovered that there are existing tests (tests), but they did not work on my local environment. For example, due to changes in the internal code of dbt-osmosis, the following code either did not run or the source code where it was defined no longer exists.

There are several ways to add tests to dbt-osmosis, such as the ones listed below. I would like to hear your thoughts as a repository owner on which plan is best.

Please let me know what you think. Based on your feedback, I plan to submit a pull request for the tests.

z3z1ma commented 9 months ago

All /tests in dbt-osmosis can be scratched. dbt-core-interface is vendored inside dbt-osmosis. Which means the tests done upstream are applicable to the approach here. My suggestion would be to scope the tests to just the YAML manipulation, column and metadata propagation, file migrations, or things of that nature. And leave the more low level testing to dbt-core-interface as needed.

Plan B: Delete the existing tests and add new tests for core features of dbt-osmosis, such as column propagation. If possible, I would like to choose this plan.

So this one for sure