unittest

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: MIT Imports: 8 Imported by: 1

Documentation

Overview

Package unittest strategy runs the same unit test for each iteration

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestCaseStrategy

type TestCaseStrategy struct {
	*types.BaseService
	Actions *types.Channel[*strategies.Action]
	// contains filtered or unexported fields
}

TestCaseStrategy runs the unit test for the specified number of iterations

func NewTestCaseStrategy

func NewTestCaseStrategy(testCase *testlib.TestCase, recordFilePath string) *TestCaseStrategy

NewTestCaseStrategy creates a new TestCaseStrategy

func (*TestCaseStrategy) ActionsCh added in v0.2.7

func (t *TestCaseStrategy) ActionsCh() *types.Channel[*strategies.Action]

func (*TestCaseStrategy) EndCurIteration

func (t *TestCaseStrategy) EndCurIteration(ctx *strategies.Context)

func (*TestCaseStrategy) Finalize

func (t *TestCaseStrategy) Finalize(ctx *strategies.Context)

func (*TestCaseStrategy) NextIteration

func (t *TestCaseStrategy) NextIteration(ctx *strategies.Context)

func (*TestCaseStrategy) Start

func (p *TestCaseStrategy) Start() error

func (*TestCaseStrategy) Step

func (t *TestCaseStrategy) Step(e *types.Event, ctx *strategies.Context)

func (*TestCaseStrategy) Stop

func (p *TestCaseStrategy) Stop() error

Jump to

Keyboard shortcuts

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