runner

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2019 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

Runner is the test runner.

func (*Runner) Destroy

func (r *Runner) Destroy() error

Destroy releases all the resources used by the runner.

func (*Runner) Run

func (r *Runner) Run() (failed int, err error)

Run runs the tests and returns the of failed tests.

func (*Runner) Server

func (r *Runner) Server() *Server

Server returns the object that is used to interact with the server.

type RunnerBuilder

type RunnerBuilder struct {
	// contains filtered or unexported fields
}

RunnerBuilder contains the information and logic needed to create a test runner. Don't create instances of this type directly; use the NewRunner function instead.

func NewRunner

func NewRunner() *RunnerBuilder

NewRunner creates a new object that knows how to build test runners.

func (*RunnerBuilder) Build

func (b *RunnerBuilder) Build() (rnnr *Runner, err error)

Build uses the information stored in the builder to create a new runner.

func (*RunnerBuilder) Compile

func (b *RunnerBuilder) Compile(value bool) *RunnerBuilder

Compile indicates if the test binaries should be compiled. The default value is true.

func (*RunnerBuilder) Config

func (b *RunnerBuilder) Config(value string) *RunnerBuilder

Config sets the configuration file that will be used to connect to the OpenShift API. If not set it will try to use the `~/.kube/config` or the configuration provided by the cluster to the pod.

func (*RunnerBuilder) Directories

func (b *RunnerBuilder) Directories(values ...string) *RunnerBuilder

Directories adds a collection of directories to process.

func (*RunnerBuilder) Directory

func (b *RunnerBuilder) Directory(value string) *RunnerBuilder

Directory adds one directory to process.

func (*RunnerBuilder) Insecure

func (b *RunnerBuilder) Insecure(value bool) *RunnerBuilder

Insecure indicates if connections to HTTPS servers that identify themselves with certificates signed by unknown certificate authorities should be accepted. The default is to not accept such connections.

func (*RunnerBuilder) Keep

func (b *RunnerBuilder) Keep(value bool) *RunnerBuilder

Keep indicates if the OpenShift project should be preserved when the runner is destroyed.

func (*RunnerBuilder) Proxy

func (b *RunnerBuilder) Proxy(value string) *RunnerBuilder

Proxy sets the URL of the proxy server that will be used to connect to the OpenShift API.

func (*RunnerBuilder) Recursive

func (b *RunnerBuilder) Recursive(value bool) *RunnerBuilder

Recursive indicates if the given package names should be recursively scanned looking for all the test suites. The default value is false.

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server simplifies the interaction with the server.

func (*Server) Address

func (s *Server) Address() string

Address returns the address of the server.

func (*Server) Send

func (s *Server) Send(request *api.Test) (response *api.Test, err error)

Send sends the test to the server, waits for it to be executed and returns the results.

Jump to

Keyboard shortcuts

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