test

package
v0.0.0-...-5808d0b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

README


_build: render: never list: never

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.


Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Flags = initializeFlags()

Flags holds the command line flags or defaults for settings in the user's environment. See EnvironmentFlags for a list of supported fields.

Functions

func GetAllowedLanguages

func GetAllowedLanguages() map[string]bool

GetAllowedLanguages is a helper function to return a map of allowed languages based on Languages filter

Types

type EnvironmentFlags

type EnvironmentFlags struct {
	Languages string // Allowed languages to run
}

EnvironmentFlags define the flags that are needed to run the e2e tests.

Directories

Path Synopsis
Temporarily have an empty package here until we remove the prow jobs https://github.com/knative/test-infra/pull/2891
Temporarily have an empty package here until we remove the prow jobs https://github.com/knative/test-infra/pull/2891

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL