testing

package
v0.12.1-0...-6bdb67e Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestPlugin

func NewTestPlugin(ctx context.Context, config TestPluginConfig) (pluginslov1.Plugin, error)

NewTestPlugin is a helper util to load a plugin using the engine that will use Sloth. In the sense of an acceptance/integration test.

This has benefits over loading the plugin directly with Go, by using this method you will be sure that what is executed is what the sloth will execute at runtime, so, if you use a not supported feature or the engine has a bug, this will be detected on the tests instead of Sloth runtime on execution.

Types

type TestPluginConfig

type TestPluginConfig struct {
	PluginFilePath      string
	PluginConfiguration json.RawMessage
}

Jump to

Keyboard shortcuts

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