View source: R/test_description.R
test_description | R Documentation |
In the general case, a simple indicator of the source file and line number is used as a test description. There are some special cases where more descriptive information can be extracted:
test_description(x)
x |
a unit test call stack or expression. |
testthat
If the test used test_that
,
then the description (desc
parameter) is extracted and evaluated if
need be to produce a descriptive string. Nested calls to
test_that
currently return the outermost test
description, although this behavior is subject to change.
A string that describes the test. If possible, this will be a written description of the test, but will fall back to the test call as a string in cases where no written description can be determined.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.