test

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2017 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SuiteAuto        = "auto"
	SuitePouchLocal  = "pouch"
	SuitePouchRemote = "pouchRemote"
	SuiteCouch16     = "couch16"
	SuiteCouch20     = "couch20"
	SuiteCloudant    = "cloudant"
	SuiteKivikServer = "kivikServer"
	SuiteKivikMemory = "kivikMemory"
	SuiteKivikFS     = "kivikFilesystem"
)

The available test suites

Variables

AllSuites is a list of all defined suites.

Functions

func CleanupTests

func CleanupTests(driver, dsn string, verbose bool) error

CleanupTests attempts to clean up any stray test databases created by a previous test run.

func ListTests

func ListTests()

ListTests prints a list of available test suites to stdout.

func RegisterSuite

func RegisterSuite(suite string, conf kt.SuiteConfig)

RegisterSuite registers a Suite as available for testing.

func RunTests

func RunTests(opts Options)

RunTests runs the requested test suites against the requested driver and DSN.

func Test

func Test(driver, dsn string, testSuites []string, rw bool, t *testing.T)

Test is the main test entry point when running tests through the command line tool.

Types

type Options

type Options struct {
	Driver  string
	DSN     string
	Verbose bool
	RW      bool
	Match   string
	Suites  []string
	Cleanup bool
}

Options are the options to run a test from the command line tool.

Directories

Path Synopsis
Package kt provides common utilities for Kivik tests.
Package kt provides common utilities for Kivik tests.

Jump to

Keyboard shortcuts

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