test

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteSuite

func ExecuteSuite(suitesPath string) error

Types

type ExecuteSuiteResult added in v1.16.0

type ExecuteSuiteResult struct {
	Success bool
	Error   error
	Logs    []string
}

ExecuteSuiteResult holds the result of test suite execution including logs

func ExecuteFromHTTPRequest added in v1.16.0

func ExecuteFromHTTPRequest(suiteReq HTTPSuiteRequest) *ExecuteSuiteResult

ExecuteFromHTTPRequest executes a test suite directly from HTTP request data

type HTTPSuiteRequest added in v1.16.0

type HTTPSuiteRequest struct {
	Name            string            `json:"name"`
	Description     string            `json:"description"`
	EnvironmentName string            `json:"environment_name"`
	Tests           []HTTPTestRequest `json:"tests"`
	ApiKey          string            `json:"api_key,omitempty"` // Optional token to override global.VoiceflowAPIKey
}

HTTPSuiteRequest represents a test suite from HTTP request

type HTTPTestRequest added in v1.16.0

type HTTPTestRequest struct {
	ID   string     `json:"id"`
	Test tests.Test `json:"test"`
}

HTTPTestRequest represents a test from HTTP request

type LogCollector added in v1.16.0

type LogCollector struct {
	Logs []string
}

LogCollector is used to collect logs during test execution

func (*LogCollector) AddLog added in v1.16.0

func (lc *LogCollector) AddLog(message string)

AddLog adds a log message to the collector

Jump to

Keyboard shortcuts

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