Code
source_file(test_path("reporters/error-setup.R"), wrap = FALSE)
Condition
Error:
! In path: "reporters/error-setup.R"
Caused by error in `h()`:
! !
Code
filter_desc(code, "baz")
Condition
Error:
! Failed to find test with specified description
Code
filter_desc(code, "foo")
Output
expression(test_that("foo", {
# this is a comment
}))
Code
filter_desc(code, "baz")
Condition
Error:
! Found multiple tests with specified description
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.