docs/test
Adriano Cunha 5c7ec25226 Create presubmit and end-to-end test infrastructure (#68)
* Create presubmit and end-to-end test infrastructure

Partially addresses #65.

Note that build, unit and integration tests are currently placeholders for the real stuff (see #67, #66 and #30).

* Fixes:
* Correctly wait for knative/serving to be up
* Add proper E2E header, stating that no tests are run
2018-07-03 13:07:28 -07:00
..
OWNERS Create presubmit and end-to-end test infrastructure (#68) 2018-07-03 13:07:28 -07:00
README.md Create presubmit and end-to-end test infrastructure (#68) 2018-07-03 13:07:28 -07:00
e2e-tests.sh Create presubmit and end-to-end test infrastructure (#68) 2018-07-03 13:07:28 -07:00
library.sh Create presubmit and end-to-end test infrastructure (#68) 2018-07-03 13:07:28 -07:00
presubmit-tests.sh Create presubmit and end-to-end test infrastructure (#68) 2018-07-03 13:07:28 -07:00

README.md

Test

This directory contains tests and testing docs.

Running unit tests

TODO(#66): Write real unit tests.

Running end-to-end tests

Dependencies

You might need to install kubetest in order to run the end-to-end tests locally:

go get -u k8s.io/test-infra/kubetest

Simply run the e2e-tests.sh script, setting $PROJECT_ID first to your GCP project. The script will create a GKE cluster, install Knative, run the end-to-end tests and delete the cluster.

If you already have a cluster set, ensure that $PROJECT_ID is empty and call the script with the --run-tests argument. Note that this requires you to have Knative Build installed and configured to your particular configuration setup.