View source: R/test_framework.R
testContext | R Documentation |
Define a context for tests using testthat framework.
In addition to calling testthat::context()
.
testContext(text)
text |
The text to print as test context. |
No value returned.
# 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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.