longtests/testthat/test_long_100_generic.R

# Set test context
biodb::testContext("Generic long tests")

# Instantiate Biodb
biodb <- biodb::createBiodbTestInstance(ack=TRUE)

# Load package definitions
defFile <- system.file("definitions.yml", package='biodbChebi')
biodb$loadDefinitions(defFile)

# Create connector
conn <- biodb$getFactory()$createConn('chebi')

# Run generic tests
testRefFolder <- system.file("testref", package='biodbChebi')
biodb::runGenericTests(conn, pkgName='biodbChebi', short=FALSE, long=TRUE,
    testRefFolder=testRefFolder, opt=list(max.results=1))

# Terminate Biodb
biodb$terminate()
pkrog/biodbChebi documentation built on March 29, 2022, 8:40 a.m.