client/test
Roland Huß 46d5e60e42
refactor(source): Update to Knative eventing 0.13.0 (#705)
* chore(e2e): Optimized tests

Smoke Tests now run before the E2E tests, but in the same cluster

* chore: Removed unneeded test

* fix

* fix

* fix

* fix

* chore: Update to serving & eventing v0.13.0

* refactor(source): Update to Knative eventing 0.13.0

* Moved to "sources.knative.dev" API group
* Replaced CronJobSource with PingSource (and removed unsupported options for service account, requests limits)
* Move to versions:
  - SinkBinding v1alpha2
  - PingSource v1alpha2
  - ApiServerSource v1alpha1

* update to eventing 0.13.1

* go.sum fix

* fixed test

* test updates

* try to enhance error output

* fix test.

* update tests infra to 0.13.1
2020-03-06 13:47:27 -08:00
..
e2e refactor(source): Update to Knative eventing 0.13.0 (#705) 2020-03-06 13:47:27 -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
common.sh refactor(source): Update to Knative eventing 0.13.0 (#705) 2020-03-06 13:47:27 -08:00
e2e-tests.sh refactor(source): Update to Knative eventing 0.13.0 (#705) 2020-03-06 13:47:27 -08:00
presubmit-integration-tests-latest-release.sh refactor(source): Update to Knative eventing 0.13.0 (#705) 2020-03-06 13:47:27 -08:00
presubmit-tests.sh Re-enable markdown link check (#693) 2020-03-03 09:22:53 -08:00
tekton-tests.sh refactor(source): Update to Knative eventing 0.13.0 (#705) 2020-03-06 13:47:27 -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