Skip to content

Commit 89d1546

Browse files
committed
Polish news
1 parent 956f4f6 commit 89d1546

File tree

1 file changed

+29
-18
lines changed

1 file changed

+29
-18
lines changed

NEWS.md

Lines changed: 29 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,56 @@
11
# testthat (development version)
22

3+
## Lifecycle changes
4+
35
* `is_informative_error()` and the `wrap` argument to `test_dir()` and friends
46
are now defunct.
57

6-
* `expect_snapshot_value()` has an improved error if the object can't be
7-
safely serialized using the specified `style` (#1771).
8-
98
* `expect_no_error()`, `expect_no_warning()`, `expect_no_message()`,
109
`expect_no_condition()`, `local_mocked_bindings()`, and
1110
`with_mocked_bindings()` are now stable, not experimental.
1211

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
2513

2614
* All packages, regardless of whether or not they use rlang 1.0.0, now
2715
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.
2819

2920
* testthat uses an improved algorithm for finding the srcref associated with
3021
an expectation/error/warning/skip. It now looks for the most recent call
3122
that has known source and is found inside the `test_that()` call. This
3223
generally gives more specific locations than the previous approach and
3324
gives much better locations if an error occurs in an exit handler.
3425

35-
* Helpers should no longer be run twice.
3626

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.
3930

4031
* `expect_setequal()` correctly displays results when only one of actual and
4132
expected is missing values (#1835).
4233

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+
4354
# testthat 3.1.10
4455

4556
* Fix for upcoming R-devel release.

0 commit comments

Comments
 (0)