Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 1.13 KB

01-00-testing.md

File metadata and controls

31 lines (21 loc) · 1.13 KB

Testing

The Eventing Publisher Proxy uses the following testing activities:

Unit Tests and Integration Tests

To run the unit and integration tests, you must run the following command:

make generate-and-test

The command ensures that all necessary tooling is executed if the source code changed, or if this is your first time to execute the tests

E2E Tests

Because E2E tests need a Kubernetes cluster to run on, they are separate from the remaining tests. The E2E tests are executed on any PR using GithubActions. For local execution, follow the steps in the action.

As prerequisites, you need:

  • Docker to build the EPP image.
    make docker-build docker-push IMG=<container-registry>/eventing-publisher-proxy:<tag>
    export EPP_IMAGE=$IMG
  • kubectl
  • Access to a Kubernetes cluster (like k3d or k8s)
  • Eventing Manager to execute commands in its MAKEFILE.