kmesh icon indicating copy to clipboard operation
kmesh copied to clipboard

Update Makefile to support running specific unit and e2e tests (#1230)

Open nitishmalang opened this issue 10 months ago • 1 comments

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_PATTERN and E2E_TEST_PATTERN variables to filter tests.
  • Added test-unit-specific and test-e2e-specific targets to run specific tests.
  • Updated test-unit and test-e2e targets 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.

nitishmalang avatar Feb 13 '25 21:02 nitishmalang

[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

kmesh-bot avatar Feb 13 '25 21:02 kmesh-bot