runner

package
v0.0.0-...-6fa03d5 Latest Latest
Warning

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

Go to latest
Published: May 4, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package runner has functions to be able to run given suite of tests. It runs InstanceGroups sequentially, with each Instance within a group being run in parallel. See the comments in suite.proto for further description of the test suite execution logic.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PartialReportFunc

type PartialReportFunc func(*rpb.InstanceGroup)

PartialReportFunc is used by framework to notify caller when running a single spb.InstanceGroup is finished.

type Runner

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

Runner object encapsulates the config, report and logging to run a Suite of tests.

func New

func New(cfg *config.Config, r PartialReportFunc) *Runner

New creates an instance of runner. It receives; - config that contains the Suite proto - update function to notify caller about the partial results

func (*Runner) Start

func (r *Runner) Start(pCtx context.Context) error

Start runs all the tests in the Suite. Start blocks caller until all tests finish. Reporting is done by calling PartialReportFunc as rpb.InstanceGroup ready.

Jump to

Keyboard shortcuts

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