Unit Test Helpers
unit-help.Rd
Manage whether certain tests are skipped during
devtools::check()
, devtools::test()
, or
during a temporary automated pipeline builds.
This may be desired if certain tests are time
consuming or special environment characteristics
make them undesirable.
See testthat::skip_if()
and
testthat::skip_on_cran()
for details.
Usage
expect_error_free(...)
skip_on_check()
skip_on_test()
expect_snapshot_plot(code, name, type = c("png", "pdf"), ...)
Arguments
- ...
Arguments passed to
testthat::expect_no_error()
or the logicalgg =
param if inexpect_snapshot_plot()
.- code
The code to execute.
- name
character(1)
. A temporary file name to use during the test.- type
character(1)
. Either "png" or "pdf".