testContext: Set a test context.

View source: R/test_framework.R

testContextR Documentation

Set a test context.

Description

Define a context for tests using testthat framework. In addition to calling testthat::context().

Usage

testContext(text)

Arguments

text

The text to print as test context.

Value

No value returned.

Examples

# Define a context before running tests:
biodb::testContext("Test my database connector.")

# Instantiate a BiodbMain instance for testing
biodb <- biodb::createBiodbTestInstance()

# Terminate the instance
biodb$terminate()


pkrog/biodb documentation built on Nov. 29, 2022, 4:24 a.m.