fail {testthat} | R Documentation |
The fail function forces a test to fail. This is useful if you want to test a pre-condition '
fail(message = "Failure has been forced")
message |
a string to display. |
## Not run: test_that("this test fails", fail()) ## End(Not run)