r-lib / testthat

An R 📦 to make testing 😀
https://testthat.r-lib.org
Other
890 stars 319 forks source link

skip a whole context #780

Closed hughjonesd closed 6 years ago

hughjonesd commented 6 years ago

It would be nice if skip() used outside a test skipped the entire context.

I have several tests of features that depend on a particular package, e.g. https://github.com/hughjonesd/huxtable/blob/master/tests/testthat/test-flextable.R . I'd like to write skip_if_not_installed("package") once instead of several times.

hughjonesd commented 6 years ago

Shut up David, this works already :-/