testthat 0.11.0 is now available on CRAN. Testthat makes it easy to turn your existing informal tests into formal automated tests that you can rerun quickly and easily. Learn more at http://r-pkgs.had.co.nz/tests.html. Install the latest version with:

install.packages("testthat")

In this version:

f <- function() {
  print(1)
  message(2)
  warning(3)
}
expect_silent(f())
#> Error: f() produced output, warnings, messages

expect_warning(log(-1), NA)
#> Error: log(-1) expected no warnings:
#> *  NaNs produced

There were a number of other minor improvements and bug fixes. See the release notes for a complete list.

A big thanks goes out to all the contributors who made this release happen. There’s no way I could be as productive without the fantastic commmunity of R developers who come up with thoughtful new features, and who discover and fix my bugs!