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

feat: [PoC] Set up integration tests - with setup #1989

Closed
wants to merge 1 commit into from

Conversation

sfc-gh-asawicki
Copy link
Collaborator

@sfc-gh-asawicki sfc-gh-asawicki commented Aug 1, 2023

Changes

This is a short PoC of introducing TestMain wrapper to all integration tests to avoid common setup and cleanup (with the aim to reduce boilerplate and tests time).

There are two PRs:

On local machine the difference in running example test was around 20% time reduction (accordingly without and with set up):

2023/08/01 13:41:02 [DEBUG] tests took 35.309400583s
ok      github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/integration_tests        35.629s
2023/08/01 13:39:18 [DEBUG] tests took 27.170710792s
ok      github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/integration_tests        28.069s

Test Plan

  • none, this is just PoC

@sfc-gh-asawicki sfc-gh-asawicki changed the base branch from main to add-pipe-to-sdk-v2 August 1, 2023 11:57
@github-actions
Copy link

github-actions bot commented Aug 1, 2023

Integration tests failure for 9a42a280629572d81c0aab14ee63e2bcfea50e53

1 similar comment
@github-actions
Copy link

github-actions bot commented Aug 1, 2023

Integration tests failure for 9a42a280629572d81c0aab14ee63e2bcfea50e53

@github-actions
Copy link

github-actions bot commented Aug 1, 2023

Integration tests success for e3ffec4f0bf17f471a71fdfe0d99913b1f3c22e9

Base automatically changed from add-pipe-to-sdk-v2 to main August 3, 2023 09:57
@github-actions
Copy link

github-actions bot commented Aug 3, 2023

Integration tests success for 27de15c23e71ba2d37e0b3f83115cc278a70b30b

@github-actions
Copy link

Integration tests failure for 1f72f3a0c26c47380c9beeb7b6b117532e56211e

# Conflicts:
#	pkg/sdk/pipes_integration_test.go
@github-actions
Copy link

Integration tests success for 0adbd9c303766e92642b6d8c8810649ae5235b94

@sfc-gh-asawicki
Copy link
Collaborator Author

This was just a PoC. Continuation in #2111.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant