
Ignored expectations are not reported in the test results. Ignoring is only useful for test files, and not for use directly at the commandline. See also the vignette.
ignore(fun)
An expect_
function
an ignored function
Other test-functions: expect_equal
# NOT RUN {
## The result of 'expect_warning' is not stored in the test result when
## this is run from a file.
expect_true( ignore(expect_warning)(warning("foo!")) )
## Note the placement of the brackets in ignore(expect_warning)(...).
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab