You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: NEWS.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,17 @@
1
1
# testthat (development version)
2
2
3
3
* Interrupting a test now prints the test name. This makes it easier to tell where a very slow test might be hanging (#1464)
4
+
*`describe()`, `it()`, and `test_that()` now have a shared stack of descriptions so that if you nest any inside of each other, any resulting failures will show you the full path.
5
+
*`describe()` now correctly scopes `skip()` (#2007).
6
+
*`ParallelProgressReporter` now respect `max_failures` (#1162).
7
+
* The last snapshot is no longer lost if the snapshot file is missing the final newline (#2092). It's easy to accidentally remove this because there are two trailing new lines in snapshot files and many editors will automatically remove if you touch the file.
8
+
* New `expect_r6_class()` (#2030).
9
+
*`expect_*()` functions consistently and rigorously check their inputs (#1754).
10
+
*`JunitReporter()` no longer fails with `"no applicable method for xml_add_child"` for warnings outside of tests (#1913). Additionally, warnings now save their backtraces.
11
+
*`JunitReporter()` strips ANSI escapes in more placese (#1852, #2032).
12
+
*`try_again()` is now publicised. The first argument is now the number of retries, not tries (#2050).
13
+
*`vignette("custom-expectations)` has been overhauled to make it much clearer how to create high-quality expectations (#2113, #2132, #2072).
14
+
*`expect_snapshot()` and friends will now fail when creating a new snapshot on CI. This is usually a signal that you've forgotten to run it locally before committing (#1461).
4
15
*`expect_snapshot_value()` can now handle expressions that generate `-` (#1678) or zero length atomic vectors (#2042).
5
16
*`expect_matches()` failures should be a little easier to read (#2135).
6
17
* New `local_on_cran(TRUE)` allows you to simulate how your tests will run on CRAN (#2112).
0 commit comments