distertester

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunAssetDistTest

func RunAssetDistTest(t *testing.T,
	pluginProvider pluginapitester.PluginProvider,
	assetProvider pluginapitester.AssetProvider,
	testCases []TestCase,
)

RunAssetDistTest tests the "dist" operation using the provided asset. Uses the provided plugin provider and asset provider to resolve the plugin and asset and invokes the "dist" command.

Types

type TestCase

type TestCase struct {
	Name        string
	Specs       []gofiles.GoFileSpec
	ConfigFiles map[string]string
	WantError   bool
	WantOutput  func(projectDir string) string
	Validate    func(projectDir string)
}

Jump to

Keyboard shortcuts

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