openshift-pipelines / pipelines-as-code

Pipelines-as-Code for Tekton
https://pipelinesascode.com
Apache License 2.0
130 stars 80 forks source link

Do not run e2e tests as unit tests #1655

Closed chmouel closed 5 months ago

chmouel commented 5 months ago

we were running every every pkg in ./... and including the e2e tests. Which was not right and started to fail with:

test.go:77: assertion failed: error is not nil: "TEST_EL_URL" env
variable is required, cannot continue: cannot do gitea setup:
"TEST_EL_URL" env variable is required, cannot continue

image

Let's fix this by running only the unit tests in the pkg directory.

And run them with caching by default, add a new target to run them without cache with make test-no-cache

Changes

Submitter Checklist