Skip to content

Commit

Permalink
More news fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Jan 10, 2025
1 parent 77cb2d1 commit 14c8f4b
Showing 1 changed file with 0 additions and 49 deletions.
49 changes: 0 additions & 49 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,55 +33,6 @@

* `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).
* Fixed an issue where `expect_no_error(1)` was failing (#2037).

* Fixed an issue where calling `skip()` outside of an active test could
cause an unexpected error (@kevinushey, #2039).

# 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).
Expand Down

0 comments on commit 14c8f4b

Please sign in to comment.