tests

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Drive

func Drive(t *testing.T, script string, f ...func(*exec.Cmd)) string

func Host

func Host(t *testing.T, host, script string) string

Host is like Drive but customize the target host for the driver

func Vince added in v0.0.10

func Vince(t *testing.T, o Options) (context.Context, *mail.Backend)

Vince configures vince instance and returns context.Context of configured values. A lot of vince features support notification via email thats why we also return mail.Backend, this email server is not started unless you explicitly set o.StartSMTP to true.

Resources are automatically released when the test function is done.

Types

type Options added in v0.0.10

type Options struct {
	StartSMTP bool
	SMTPOpts  []func(*smtp.Server)
	VinceOpts []func(*config.Options)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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