tests/testthat/test_100_generic.R

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

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

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

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

# Run generic tests
testRefFolder <- system.file("testref", package='biodbUniprot')
biodb::runGenericTests(conn, pkgName='biodbUniprot',
    testRefFolder=testRefFolder, opt=list(max.results=3))

# Terminate Biodb
biodb$terminate()
pkrog/biodbUniprot documentation built on Sept. 26, 2022, 3:50 p.m.