Skip to content

Commit

Permalink
Describe Runtime Envs of E2E Tests
Browse files Browse the repository at this point in the history
Prior to this commit, it is unclear that where the local tests run
and the difference between local tests and presubmit/CI tests. It
can be hard for people to understand/debug test failures, especially
for people who start to contribute to Tekton.

This commit enriches the test doc to clarify the difference mentioned
above.
  • Loading branch information
XinruZhang authored and tekton-robot committed Sep 7, 2022
1 parent c6ba630 commit 64984fc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ go test -v -count=1 -tags=e2e -timeout=20m ./test
go test -v -count=1 -tags=conformance -timeout=10m ./test
```

By running the commands above, you start the tests on the cluster of `current-context`
in local kubeconfig file (~/.kube/config by default) in you local machine.

> Sometimes local tests pass but presubmit tests fail, one possible reason
is the difference of running environments. The envs that our presubmit test
uses are stored in ./*.env files. Specifically,
> - e2e-tests-kind-prow-alpha.env for [`pull-tekton-pipeline-alpha-integration-tests`](https://github.com/tektoncd/plumbing/blob/d2c8ccb63d02c6e72c62def788af32d63ff1981a/prow/config.yaml#L1304)
> - e2e-tests-kind-prow.env for [`pull-tekton-pipeline-integration-tests`](https://github.com/tektoncd/plumbing/blob/d2c8ccb63d02c6e72c62def788af32d63ff1981a/prow/config.yaml#L1249)
## Unit tests

Unit tests live side by side with the code they are testing and can be run with:
Expand Down

0 comments on commit 64984fc

Please sign in to comment.