test

package
v2.0.0-alpha.9 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Plugins

func Plugins() []plugins.Plugin

Types

type AfterTester

type AfterTester interface {
	plugins.Plugin
	AfterTest(ctx context.Context, root string, args []string, err error) error
}

type Aliaser

type Aliaser interface {
	Tester
	CmdAliases() []string
}

type Argumenter

type Argumenter interface {
	plugins.Plugin
	TestArgs(ctx context.Context, root string) ([]string, error)
}

type BeforeTester

type BeforeTester interface {
	plugins.Plugin
	BeforeTest(ctx context.Context, root string, args []string) error
}

type Cmd

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

func (*Cmd) Cmd

func (tc *Cmd) Cmd(ctx context.Context, root string, args []string) (*exec.Cmd, error)

func (Cmd) Description

func (Cmd) Description() string

func (*Cmd) Main

func (tc *Cmd) Main(ctx context.Context, root string, args []string) error

func (Cmd) PluginName

func (Cmd) PluginName() string

func (*Cmd) ScopedPlugins

func (bc *Cmd) ScopedPlugins() []plugins.Plugin

func (*Cmd) SubCommands

func (bc *Cmd) SubCommands() []plugins.Plugin

func (*Cmd) WithPlugins

func (b *Cmd) WithPlugins(f plugins.Feeder)

type GoEnv

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

GoEnv Sets GO_ENV before tests run

func (*GoEnv) AfterTest

func (ebt *GoEnv) AfterTest(ctx context.Context, root string, args []string, err error) error

AfterTest should be invoked after tests run to reset GO_ENV variable

func (*GoEnv) BeforeTest

func (ebt *GoEnv) BeforeTest(ctx context.Context, root string, args []string) error

BeforeTest should be invoked before tests run to set the GO_ENV variable

func (GoEnv) PluginName

func (ebt GoEnv) PluginName() string

PluginName for BeforeTestEnv

type Namer

type Namer interface {
	Tester
	CmdName() string
}

type Runner

type Runner interface {
	plugins.Plugin
	RunTests(ctx context.Context, root string, cmd *exec.Cmd) error
}

type Setup

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

func (Setup) AfterSetup

func (s Setup) AfterSetup(ctx context.Context, root string, args []string, err error) error

func (Setup) CmdName

func (s Setup) CmdName() string

func (Setup) PluginName

func (s Setup) PluginName() string

func (*Setup) WithPlugins

func (s *Setup) WithPlugins(f plugins.Feeder)

type Stdouter

type Stdouter = plugio.Outer

type Tester

type Tester interface {
	plugins.Plugin
	Test(ctx context.Context, root string, args []string) error
}

Tester is a sub-command of buffalo test.

buffalo test webpack

func FindTester

func FindTester(name string, plugs []plugins.Plugin) Tester

func FindTesterFromArgs

func FindTesterFromArgs(args []string, plugs []plugins.Plugin) Tester

Jump to

Keyboard shortcuts

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