View source: R/generic_tests.R
| runGenericTests | R Documentation | 
This function must be used in tests on all connector classes, before any specific tests.
runGenericTests( conn, pkgName, testRefFolder = NULL, opt = NULL, short = TRUE, long = FALSE, maxShortTestRefEntries = 1 )
conn | 
 A valid biodb connector.  | 
pkgName | 
 The name of your package.  | 
testRefFolder | 
 The folder where to find test reference files.  | 
opt | 
 A set of options to pass to the test functions.  | 
short | 
 Run short tests.  | 
long | 
 Run long tests.  | 
maxShortTestRefEntries | 
 The maximum number of reference entries to use in short tests.  | 
Nothing.
# Instantiate a Biodb instance for testing
biodb <- biodb::createBiodbTestInstance()
# Create a connector instance
lcmsdb <- system.file("extdata", "massbank_extract.tsv", package="biodb")
conn <- biodb$getFactory()$createConn('mass.csv.file', lcmsdb)
# Run generic tests
biodb::runGenericTests(conn)
# Terminate the instance
biodb$terminate()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.