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
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,12 @@
2
2
3
3
*`expect_snapshot_file()` now considers `.json` to be a text file (#1593).
4
4
*`expect_snapshot_file()` now shows differences for text files (#1593).
5
+
* The failure messages for all `expect_` functions have been rewritten to first state what was expected and then what was actually received (#2142).
6
+
*`test_file(desc = ...)` no longer loses snapshot results (#2066).
7
+
* In `R CMD check`, snapshots now only advise on how to resolve failures once (#2207).
8
+
*`snapshot_review()` includes a reject button and only displays the file navigation and the skip button if there are multiple files to review (#2025).
9
+
* New `snapshot_download_gh()` makes it easy to get snapshots off GitHub and into your local package (#1779).
10
+
* New `local_mocked_s3_method()`, `local_mocked_s4_method()`, and `local_mocked_r6_class()` allow you to mock S3 and S4 methods and R6 classes (#1892, #1916)
5
11
*`expect_snapshot_file(name=)` must have a unique file path. If a snapshot file attempts to be saved with a duplicate `name`, an error will be thrown. (#1592)
6
12
*`test_dir()`, `test_file()`, `test_package()`, `test_check()`, `test_local()`, `source_file()` gain a `shuffle` argument uses `sample()` to randomly reorder the top-level expressions in each test file (#1942). This random reordering surfaces dependencies between tests and code outside of any test, as well as dependencies between tests. This helps you find and eliminate unintentional dependencies.
7
13
*`snapshot_accept(test)` now works when the test file name contains `.` (#1669).
0 commit comments