Skip to content

testthat 0.11.0

Compare
Choose a tag to compare
@hadley hadley released this 14 Oct 13:58
· 1421 commits to master since this release
  • Handle skipped tests in the TAP reporter (#262).
  • New expect_silent() ensures that code produces no output, messages,
    or warnings (#261).
  • New expect_lt(), expect_lte(), expect_gt() and expect_gte() for
    comparison with or without equality (#305, @krlmlr).
  • expect_output(), expect_message(), expect_warning(), and
    expect_error() now accept NA as the second argument to indicate that
    output, messages, warnings, and errors should be absent (#219).
  • Praise gets more diverse thanks to the praise package, and you'll now
    get random encouragment if your tests don't pass.
  • testthat no longer muffles warning messages. If you don't want to see them
    in your output, you need to explicitly quiet them, or use an expectation that
    captures them (e.g. expect_warning()). (#254)
  • Use of tests in inst/tests is formally deprecated. Please move them into
    tests/testthat instead (#231).
  • expect_match() now encodes the match, as well as the output, in the
    expectation message (#232).
  • expect_is() gives better failure message when testing multiple inheritance,
    e.g. expect_is(1:10, c("glm", "lm")) (#293).
  • Corrected argument order in compare.numeric() (#294).
  • comparison() constructure now checks its arguments are the correct type and
    length. This bugs a bug where tests failed with an error like "values must be
    length 1, but FUN(X[[1]]) result is length 2" (#279).
  • Added skip_on_os(), to skip tests on specified operating systems
    (@kevinushey).
  • Skip test that depends on devtools if it is not installed (#247, @krlmlr)
  • Added skip_on_appveyor() to skip tests on Appveyor (@lmullen).
  • compare() shows detailed output of differences for character vectors of
    different length (#274, @krlmlr).
  • Detailed output from expect_equal() doesn't confuse expected and actual
    values anymore (#274, @krlmlr).