Skip to content

Conversation

@rafaelvzago
Copy link
Contributor

Add test targets for running specific, e2e, subset, and CI tests.

Closes #2063

@rafaelvzago rafaelvzago requested a review from fgiorgetti April 10, 2025 13:23
@rafaelvzago rafaelvzago marked this pull request as ready for review April 10, 2025 13:23
Comment on lines +158 to +161
make tests-e2e ci-tests

# Run all E2E tests from the root
make tests-e2e e2e-tests
Copy link
Member

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"
Copy link
Member

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...

Comment on lines +29 to +32
# The default e2e test type is set to "ci-tests" if not provided
TEST_TYPE ?= ci-tests
TEST_OPTIONS ?= ""

Copy link
Member

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"

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.

Feature Request: Add a Top-Level make test Target

2 participants