Documentation ¶
Index ¶
- Constants
- Variables
- func CleanupTests(driver, dsn string, verbose bool) error
- func ConnectClients(driverName, dsn string, t *testing.T) (*kt.Context, error)
- func DoTest(suite, envName string, t *testing.T)
- func ListTests()
- func RegisterSuite(suite string, conf kt.SuiteConfig)
- func RunTests(opts Options)
- func RunTestsInternal(ctx *kt.Context, suite string, t *testing.T)
- func Test(driver, dsn string, testSuites []string, rw bool, t *testing.T)
- type Options
Constants ¶
View Source
const ( SuiteAuto = "auto" SuitePouchLocal = "pouch" SuitePouchRemote = "pouchRemote" SuiteCouch16 = "couch16" SuiteCouch17 = "couch17" SuiteCouch20 = "couch20" SuiteCouch21 = "couch21" SuiteCouch22 = "couch22" SuiteCouch23 = "couch23" SuiteCouch30 = "couch30" SuiteCloudant = "cloudant" SuiteKivikServer = "kivikServer" SuiteKivikMemory = "kivikMemory" SuiteKivikFS = "kivikFilesystem" )
The available test suites
Variables ¶
View Source
var AllSuites = []string{ SuitePouchLocal, SuitePouchRemote, SuiteCouch16, SuiteCouch17, SuiteCouch20, SuiteCouch21, SuiteCouch22, SuiteCouch30, SuiteKivikMemory, SuiteKivikFS, SuiteCloudant, SuiteKivikServer, }
AllSuites is a list of all defined suites.
Functions ¶
func CleanupTests ¶
CleanupTests attempts to clean up any stray test databases created by a previous test run.
func ConnectClients ¶
ConnectClients connects clients.
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 RunTestsInternal ¶
RunTestsInternal is for internal use only.
Types ¶
Click to show internal directories.
Click to hide internal directories.