client/test
Roland Huß b10580ff72 chore(trigger): Cleanup Trigger create API (#561)
* further updates

* chore: Fix calls to apiserver create

* fix namespace issue

* fix
2019-12-17 13:39:04 -08:00
..
e2e chore(trigger): Cleanup Trigger create API (#561) 2019-12-17 13:39:04 -08:00
resources/tekton Integration tests for Tekton (#528) 2019-12-06 05:03:39 -08:00
test_images/helloworld Integration tests for Tekton (#528) 2019-12-06 05:03:39 -08:00
README.md Add readme for tests (#554) (#555) 2019-12-16 23:18:02 -08:00
e2e-common.sh Eventing setup in CI (#538) 2019-12-06 10:39:40 -08:00
e2e-smoke-tests.sh kn source list-types (builtin types) (#536) 2019-12-10 11:20:47 -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 Eventing setup in CI (#538) 2019-12-06 10:39:40 -08:00
presubmit-integration-tests-latest-release.sh Vendor eventing v0.11.0 and run tests against it (#546) 2019-12-11 00:21:48 -08:00
presubmit-tests.sh Eventing setup in CI (#538) 2019-12-06 10:39:40 -08:00
tekton-tests.sh Integration tests for Tekton (#528) 2019-12-06 05:03:39 -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

go test -v -tags=e2e -count=1 ./e2e -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