kmesh
kmesh copied to clipboard
Update Makefile to support running specific unit and e2e tests (#1230)
updated the Makefile to allow running specific unit and e2e tests based on a test pattern. This helps reduce testing time by allowing run only the relevant tests for their changes.
Changes:
- Added
UNIT_TEST_PATTERNandE2E_TEST_PATTERNvariables to filter tests. - Added
test-unit-specificandtest-e2e-specifictargets to run specific tests. - Updated
test-unitandtest-e2etargets to support test filtering.
Usage Examples:
- Run specific unit tests:
make test-unit-specific UNIT_TEST_PATTERN="TestServices" - Run specific e2e tests:
make test-e2e-specific E2E_TEST_PATTERN="TestServices" - Run all tests:
make test
Fixes #1230.
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please assign nlgwcy for approval. For more information see the Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment