Path to this page:
Subject: CVS commit: pkgsrc/devel/R-testthat
From: Makoto Fujiwara
Date: 2024-12-15 05:22:41
Message id: 20241215042241.1655BFC1C@cvs.NetBSD.org
Log Message:
(devel/R-testthat) Updated 3.2.1.1 to 3.2.2
# testthat 3.2.2
## New expectations
* `expect_s7_class()` tests if an object is an S7 class (#1580).
* `expect_no_failure()`, `expect_no_success()` and `expect_snapshot_failure()`
provide more options for testing expectations.
## Bug fixes and minor improvements
* testthat now requires waldo 0.6.0 or later to access the latest features
(#1955).
* `expect_condition()` and related functions now include the `class` of the
expected condition in the failure message, if provided (#1987).
* `expect_error()` and friends now error if you supply `...` but not `pattern`
(#1932). They no longer give an uninformative error if they fail inside
a magrittr pipe (#1994).
* `expect_no_*()` expectations no longer incorrectly emit a passing test result
if they in fact fail (#1997).
* `expect_setequal()` correctly identifies what is missing where (#1962).
* `expect_snapshot()` now strips line breaks in test descriptions
(@LDSamson, #1900), and errors when called from a `test_that()` that has an
empty description (@kevinushey, #1980).
* `expect_true()` and `expect_false()` give better errors if `actual` isn't a
vector (#1996).
* `expect_visible()` and `expect_invisible()` have clearer failure messages
(#1966).
* `local_reproducible_output()` (used in `test_that()` blocks) now sets
`LANGUAGE` to `"C"` instead of `"en"` to disable translations,
avoiding warnings on some platforms (#1925).
* `skip_if_not_installed()` generates a clearer message that sorts better
(@MichaelChirico, #1959).
* `with_mock()` and `local_mock()` have been unconditionally deprecated as
they will no longer work in future versions of R (#1999).
Files: