-
Notifications
You must be signed in to change notification settings - Fork 82
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
Move integration tests to ./tests
#1490
Conversation
Does the PR have any schema changes?Looking good! No breaking changes found. |
test_build:: | ||
cd examples/utils/testvpc && yarn install && yarn run tsc | ||
|
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.
This directory doesn't exist.
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.
Good catch!
./tests
./tests
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.
Sweat. Looks good to me!
And good catch with the upgrade test that was missed
This PR has been shipped in release v3.1.0. |
This consolidates integration tests (currently located in
./examples
and./provider
) under./tests
.This is prep work for #1474, and the net result is a clearer distinction between "fast" and "slow" tests meant to be run during the "prerequisites" and "tests" steps in CI. Everything under
./provider
can be considered "fast" and everything under./tests
can be considered "slow" and worthy of sharding.Specifically:
./examples/tests
is moved to./tests/testdata/programs
as these were assumed to not be user-facing../provider
are also moved to./tests
but tagged in a way that they continue to run as their own job. (These are the newupgrade_test.go
andvalidation_test.go
files.)examples/utils/utils.go
moves totests/internal/utils
.TestEksAuthModeUpgrade
wasn't re-enabled as part of Re-Enable Upgrade tests #1387, so I re-enabled and re-recorded it.go.mod
is consolidated at the repo root to keep dependencies consistent across the provider and tests. (There are a ton of additional DX advantages to structuring things this way.) This project is not meant to be consumed as a library so this is an acceptable breaking change.