client/test
Murugappan Chetty b95f40e2fe
add e2e for user flag (#692)
2020-02-29 09:22:52 -08:00
..
e2e add e2e for user flag (#692) 2020-02-29 09:22:52 -08:00
resources/tekton chore(e2e): Update tektoncd pipeline release to v0.9.2 (#594) 2020-01-10 03:42:56 -08:00
test_images/helloworld chore(e2e): Update tektoncd pipeline release to v0.9.2 (#594) 2020-01-10 03:42:56 -08:00
README.md review comments for pr 555 (#602) 2020-01-08 15:17:53 -08:00
e2e-common.sh Eventing setup in CI (#538) 2019-12-06 10:39:40 -08:00
e2e-smoke-tests.sh Rename --async to --no-wait and deprecate it (#639) 2020-02-08 02:52:14 -08:00
e2e-tests-local.sh Selectively run e2e tests for serving, eventing (#547) 2019-12-11 03:58:48 -08:00
e2e-tests.sh chore(e2e): Increase e2e timeout to 45 minutes (#687) 2020-02-26 04:54:50 -08:00
presubmit-integration-tests-latest-release.sh chore(e2e): Update dependency to eventing v0.12.0 (#628) 2020-01-31 02:20:28 -08:00
presubmit-tests.sh Disable markdown link check and enable presubmit test fail fast (#685) 2020-02-25 23:07:50 -08:00
tekton-tests.sh chore(e2e): Update tektoncd pipeline release to v0.9.2 (#594) 2020-01-10 03:42:56 -08:00

README.md

Test

This directory contains e2e tests and testing docs:

  • Unit tests are in the code base alongside the code they test
  • e2e tests are in test/e2e/

Running unit tests

To run all unit tests:

$ hack/build.sh -t

By default go test will not run the e2e tests, which need -tags=e2e to be enabled.

Running e2e tests locally

To run the e2e tests , you need to have a

  1. Running knative environment.
  2. kn binary in the $PATH.
  3. Please Make sure that you are able to connect to the cluster by following the guide here

Before running the e2e tests please make sure you dont have any namespaces with the name starting with kne2etests

Run all e2e tests:

$ test/e2e-tests-local.sh

Running e2e tests selectively

To run only serving specific e2e tests locally, use

E2E_TAGS="serving" test/e2e-tests-local.sh

To run only eventing specific e2e tests locally, use

E2E_TAGS="eventing" test/e2e-tests-local.sh

Running a single test case

To run one e2e test case, e.g. TestBasicWorkflow

test/e2e-tests-local.sh -run ^TestBasicWorkflow$

Running tests in short mode

Running tests in short mode excludes some large-scale E2E tests and saves time/resources required for running the test suite. To run the tests in short mode, use the -short flag with go test

test/e2e-tests-local.sh -short