Description Usage Arguments Details Value
Executes the script FILE expression-by-expression and extracts the global variable test_metadata.
This string is run through a YAML parser to construct a list containing the metadata specifications
for that test suite. The global key name
should be defined and cases
should be a list of
dictionaries with keys name
and hidden
. The key case[[int]][["name"]]
should match a name
passed to a call to test_that.
1 |
file |
Path to a test suite file |
For example, the test suite might have the following contents:
library(testthat) test_metadata = " name: q1 cases: - name: q1a hidden: false - name: q1b hidden: true " test_that("q1a", {...}) test_that("q1b", {...})
The parse test suite metadata
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.