|
1 | 1 | # testthat (development version) |
2 | 2 |
|
3 | | -* New `expect_s7_class()` for testing if an object is an S7 class (#1580). |
4 | | -* `expect_error()` and friends now error if you supply `...` but not `pattern` (#1932). |
5 | | -* New `expect_no_failure()`, `expect_no_success()` and `expect_snapshot_failure()` provide more options for testing expectations. |
6 | | -* `expect_error()` and friends no longer give an uninformative error if they fail inside a magrittr pipe (#1994). |
| 3 | +## New expectations |
| 4 | + |
| 5 | +* `expect_s7_class()` tests if an object is an S7 class (#1580). |
| 6 | + |
| 7 | +* `expect_no_failure()`, `expect_no_success()` and `expect_snapshot_failure()` |
| 8 | + provide more options for testing expectations. |
| 9 | + |
| 10 | +## Bug fixes and minor improvements |
| 11 | + |
| 12 | +* testthat now requires waldo 0.6.0 or later to access the latest features |
| 13 | + (#1955). |
| 14 | + |
| 15 | +* `expect_condition()` and related functions now include the `class` of the |
| 16 | + expected condition in the failure message, if provided (#1987). |
| 17 | + |
| 18 | +* `expect_error()` and friends now error if you supply `...` but not `pattern` |
| 19 | + (#1932). They no longer give an uninformative error if they fail inside |
| 20 | + a magrittr pipe (#1994). |
| 21 | + |
| 22 | +* `expect_no_*()` expectations no longer incorrectly emit a passing test result |
| 23 | + if they in fact fail (#1997). |
| 24 | + |
7 | 25 | * `expect_setequal()` correctly identifies what is missing where (#1962). |
8 | | -* `expect_true()` and `expect_false()` give better errors if `actual` isn't a vector (#1996). |
9 | | -* `expect_no_*()` expectations no longer incorrectly emit a passing test result if they in fact fail (#1997). |
10 | | -* Require the latest version of waldo (0.6.0) in order to get the latest goodies (#1955). |
11 | | -* `expect_visible()` and `expect_invisible()` have improved failure messages (#1966). |
12 | | -* `expect_snapshot()` now strips line breaks in test descriptions (@LDSamson, #1900). |
13 | | -* `expect_snapshot()` now errors when called from a `test_that()` that has an empty description (@kevinushey, #1980). |
14 | | -* `skip_if_not_installed()` produces a clearer message (@MichaelChirico, #1959). |
15 | | -* `with_mock()` and `local_mock()` have been unconditionally deprecated as they will no longer work in future versions of R (#1999). |
16 | | -* `expect_condition()` and friends now include the `class` of the expected condition in the failure mesage, if used (#1987). |
17 | | -* `LANGUAGE` is now set to `"C"` in reprocucible environments (i.e. |
18 | | - `test_that()` blocks) to disable translations. This fixes warnings |
19 | | - about being unable to set the language to `"en"` (#1925). |
| 26 | + |
| 27 | +* `expect_snapshot()` now strips line breaks in test descriptions |
| 28 | + (@LDSamson, #1900), and errors when called from a `test_that()` that has an |
| 29 | + empty description (@kevinushey, #1980). |
| 30 | + |
| 31 | +* `expect_true()` and `expect_false()` give better errors if `actual` isn't a |
| 32 | + vector (#1996). |
| 33 | + |
| 34 | +* `expect_visible()` and `expect_invisible()` have clearer failure messages |
| 35 | + (#1966). |
| 36 | +* `local_reproducible_output()` (used in `test_that()` blocks) now sets |
| 37 | + `LANGUAGE` to `"C"` instead of `"en"` to disable translations, |
| 38 | + avoiding warnings on some platforms (#1925). |
| 39 | + |
| 40 | +* `skip_if_not_installed()` generates a clearer message that sorts better |
| 41 | + (@MichaelChirico, #1959). |
| 42 | + |
| 43 | +* `with_mock()` and `local_mock()` have been unconditionally deprecated as |
| 44 | + they will no longer work in future versions of R (#1999). |
20 | 45 |
|
21 | 46 | # testthat 3.2.1 |
22 | 47 |
|
|
0 commit comments