Code Monkey home page Code Monkey logo

Comments (10)

adrcunha avatar adrcunha commented on May 29, 2024

The behavior you need can be achieved with --run-tests. If you just want to run the e2e tests, go test is enough. How to run the e2e tests is documented in the README.md files (e.g., in serving), although --run-tests is documented in the script headers only (I encourage you to move it to the README files if you think it would have solved the scenario of this issue).

from test-infra.

zrss avatar zrss commented on May 29, 2024

thanks for reply

i hit this case by ./hack/release.sh ... and actually we should have a k8s cluster to run the e2e test right ? https://github.com/knative/serving/blob/master/test/README.md#running-end-to-end-tests

you need to have a running environment that meets the e2e test environment requirements,

from test-infra.

adrcunha avatar adrcunha commented on May 29, 2024

You can use --skip-tests to skip running the e2e tests in release.sh. And yes, you should have a k8s cluster to run the e2e tests, as explained in the docs.

from test-infra.

zrss avatar zrss commented on May 29, 2024

yes, i can skip the test though --skip-tests to skip all the tests (include e2e), but how about i have a k8s cluster rather then a GCP cluster, maybe there can be a choice that i can skip the step to setup/create a cluster from the GCP

from test-infra.

adrcunha avatar adrcunha commented on May 29, 2024

Looks like there's some confusion here. release.sh doesn't create a cluster; e2e-tests.sh does, and you can skip that using --run-tests or using go test directly as explained above (in both cases you still need to set up the env vars for your test to run).

from test-infra.

zrss avatar zrss commented on May 29, 2024

that's correct. e2e-tests.sh create a cluster not release.sh, but if i already have a cluster, can there be an option like skip-prepare-cluster to skip creating a cluster in e2e-tests.sh ?

from test-infra.

adrcunha avatar adrcunha commented on May 29, 2024

Such option is --run-tests.

from test-infra.

zrss avatar zrss commented on May 29, 2024

thanks adrcunha kindly explain

i check again the e2e-test.sh code, i find the env that u said, if u mean that ~

export K8S_USER_OVERRIDE=[your k8s user]
export K8S_CLUSTER_OVERRIDE=[your k8s cluster]
export DOCKER_REPO_OVERRIDE=[your docker repo]

./e2e-test.sh --run-tests

though if there is a well-documented about how to launch a e2e test in existing k8s cluster maybe more attractive

thanks anyway

from test-infra.

adrcunha avatar adrcunha commented on May 29, 2024

Assuming you're working on knative/serving, that would be https://github.com/knative/serving/blob/master/test/README.md#running-end-to-end-tests

from test-infra.

zrss avatar zrss commented on May 29, 2024

happy to see it 😆

from test-infra.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.