DBT-781: Improve the performance of functional tests. #198
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Describe your changes
As part of this PR, Made changes to improve the performance of functional tests. The previous runtime for all the tests was around 90 mins. Now all the tests complete under 12 mins. Was able to achieve this by running tests in parallel using pytest-xdist library.
Also using this test suite, we can test the adapter for multiple versions of python using tox.
Internal Jira ticket number or external issue link
https://jira.cloudera.com/browse/DBT-781
Testing procedure/screenshots(if appropriate):
https://gist.github.com/vamshikolanu/97f6f9d637e825fcdd0efa73a87f1c77
Individual test: https://gist.github.com/vamshikolanu/b1b12a06950e5d0b874ca2550e259760
Checklist before requesting a review