-
Notifications
You must be signed in to change notification settings - Fork 83
Add test targets for running specific, e2e, subset, and CI tests #2067
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
base: main
Are you sure you want to change the base?
Conversation
…with high availability test details
| make tests-e2e ci-tests | ||
|
|
||
| # Run all E2E tests from the root | ||
| make tests-e2e e2e-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.
Should these be: test-e2e, instead?
| make test-e2e TEST_TYPE=test TEST_OPTIONS="TEST=hello-world" | ||
|
|
||
| # Run a specific test with a subset of tests from the root | ||
| make test-e2e TEST_TYPE=test-subset TEST_OPTIONS="TESTS=hello-world,attached-connector" |
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.
The reason for my first comment is that it feels too complex to run samples like this one...
| # The default e2e test type is set to "ci-tests" if not provided | ||
| TEST_TYPE ?= ci-tests | ||
| TEST_OPTIONS ?= "" | ||
|
|
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.
What do you think of making it simpler, by introducing just one variable, like E2E_OPTIONS ?= ci-tests ?
With that, the test-e2e target below, could be simplified into something like:
$(MAKE) -C tests/ $(E2E_OPTIONS)
And the execution could be done as:
make test-e2e
make test-e2e E2E_OPTIONS="e2e-tests"
make test-e2e E2E_OPTIONS="test TEST=hello-world"
Add test targets for running specific, e2e, subset, and CI tests.
Closes #2063