|
1 | 1 | # testthat (development version) |
2 | 2 |
|
| 3 | +## Lifecycle changes |
| 4 | + |
3 | 5 | * `is_informative_error()` and the `wrap` argument to `test_dir()` and friends |
4 | 6 | are now defunct. |
5 | 7 |
|
6 | | -* `expect_snapshot_value()` has an improved error if the object can't be |
7 | | - safely serialized using the specified `style` (#1771). |
8 | | - |
9 | 8 | * `expect_no_error()`, `expect_no_warning()`, `expect_no_message()`, |
10 | 9 | `expect_no_condition()`, `local_mocked_bindings()`, and |
11 | 10 | `with_mocked_bindings()` are now stable, not experimental. |
12 | 11 |
|
13 | | -* `StopReporter()` gains the ability to suppress praise when a test passes. |
14 | | - |
15 | | -* `expect_snapshot_file()` now generates clickable links to review changes |
16 | | - (#1821). |
17 | | - |
18 | | -* `options(rlang_interactive = TRUE)` no longer causes `skip_on_cran()` to |
19 | | - not run on CRAN (#1868). |
20 | | - |
21 | | -* The skip column is now two characters wide to have a consistent width in case |
22 | | - 10 or more tests are skipped in a single file (@mgirlich, #1844). |
23 | | - |
24 | | -* `skip_if_offline()` now errors if you don't have curl installed (#1854). |
| 12 | +## New features |
25 | 13 |
|
26 | 14 | * All packages, regardless of whether or not they use rlang 1.0.0, now |
27 | 15 | use the new snapshot display for errors, warnings, and messages (#1856). |
| 16 | + This no longer shows the class name, instead focussing on a display that |
| 17 | + more closely mimics what you'll see interactively, including showing the |
| 18 | + error call. |
28 | 19 |
|
29 | 20 | * testthat uses an improved algorithm for finding the srcref associated with |
30 | 21 | an expectation/error/warning/skip. It now looks for the most recent call |
31 | 22 | that has known source and is found inside the `test_that()` call. This |
32 | 23 | generally gives more specific locations than the previous approach and |
33 | 24 | gives much better locations if an error occurs in an exit handler. |
34 | 25 |
|
35 | | -* Helpers should no longer be run twice. |
36 | 26 |
|
37 | | -* `test_file()` gains a `desc` argument which allows you to run a single |
38 | | - test from a file (#1776). |
| 27 | +## Minor features and bug fixes |
| 28 | + |
| 29 | +* Helpers are no longer be run twice. |
39 | 30 |
|
40 | 31 | * `expect_setequal()` correctly displays results when only one of actual and |
41 | 32 | expected is missing values (#1835). |
42 | 33 |
|
| 34 | +* `expect_snapshot_file()` now generates clickable links to review changes |
| 35 | + (#1821). |
| 36 | + |
| 37 | +* `expect_snapshot_value()` has an improved error if the object can't be |
| 38 | + safely serialized using the specified `style` (#1771). |
| 39 | + |
| 40 | +* `options(rlang_interactive = TRUE)` no longer causes `skip_on_cran()` to |
| 41 | + not run on CRAN (#1868). |
| 42 | + |
| 43 | +* `skip_if_offline()` now errors if you don't have curl installed (#1854). |
| 44 | + |
| 45 | +* `StopReporter` gains the ability to suppress praise when a test passes. |
| 46 | + |
| 47 | +* `ProgressReporter` now uses is a two characters wide skip column in order |
| 48 | + to have a consistent width when 10 or more tests are skipped in a single file |
| 49 | + (@mgirlich, #1844). |
| 50 | + |
| 51 | +* `test_file()` gains a `desc` argument which allows you to run a single |
| 52 | + test from a file (#1776). |
| 53 | + |
43 | 54 | # testthat 3.1.10 |
44 | 55 |
|
45 | 56 | * Fix for upcoming R-devel release. |
|
0 commit comments