Skip to content

Commit b3aaec1

Browse files
authored
Fix typos in NEWS. (#2251)
1 parent 534d447 commit b3aaec1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

NEWS.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* `expect_vector()` fails, instead of erroring, if `object` is not a vector (@plietar, #2224).
55
* New `vignette("mocking")` explains mocking in detail (#1265).
66
* New `vignette("challenging-functions")` provides an index to other documentation organised by testing challenges (#1265).
7-
* When running a test interactively, testthat now reports the number of succeses. The results should also be more useful if you are using nested tests.
8-
* The hints generated by `expect_snapshot()` and `expect_snapshot_file()` now include the path to the package, if its not in the current working directory (#1577).
7+
* When running a test interactively, testthat now reports the number of successes. The results should also be more useful if you are using nested tests.
8+
* The hints generated by `expect_snapshot()` and `expect_snapshot_file()` now include the path to the package, if it's not in the current working directory (#1577).
99
* `expect_snapshot_file()` now clearly errors if the `path` doesn't exist (#2191).
1010
* `expect_snapshot_file()` now considers `.json` to be a text file (#1593).
1111
* `expect_snapshot_file()` now shows differences for text files (#1593).
@@ -16,7 +16,7 @@
1616
* New `snapshot_download_gh()` makes it easy to get snapshots off GitHub and into your local package (#1779).
1717
* 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)
1818
* `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)
19-
* `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.
19+
* `test_dir()`, `test_file()`, `test_package()`, `test_check()`, `test_local()`, `source_file()` gain a `shuffle` argument that 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.
2020
* `snapshot_accept(test)` now works when the test file name contains `.` (#1669).
2121
* `local_mock()` and `with_mock()` have been deprecated because they are no longer permitted in R 4.5.
2222
* `snapshot_review()` now passes `...` on to `shiny::runApp()` (#1928).
@@ -30,7 +30,7 @@
3030
* Power `expect_mapequal()` with `waldo::compare(list_as_map = TRUE)` (#1521).
3131
* On CRAN, `test_that()` now automatically skips if a package is not installed (#1585). Practically, this means that you no longer need to check that suggested packages are installed. (We don't do this in the tidyverse because we think it has limited payoff, but other styles advise differently.)
3232
* `expect_snapshot()` no longer skips on CRAN, as that skips the rest of the test. Instead it just returns, neither succeeding nor failing (#1585).
33-
* Interrupting a test now prints the test name. This makes it easier to tell where a very slow test might be hanging (#1464)
33+
* Interrupting a test now prints the test name. This makes it easier to tell where a very slow test might be hanging (#1464).
3434
* Parallel testthat now does not ignore test files with syntax errors (#1360).
3535
* `expect_lt()`, `expect_gt()`, and friends have a refined display that is more likely to display the correct number of digits and shows you the actual values compared.
3636
* `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.
@@ -42,7 +42,7 @@
4242
* `JunitReporter()` no longer fails with `"no applicable method for xml_add_child"` for warnings outside of tests (#1913). Additionally, warnings now save their backtraces.
4343
* `JunitReporter()` strips ANSI escapes in more places (#1852, #2032).
4444
* `try_again()` is now publicised. The first argument is now the number of retries, not tries (#2050).
45-
* `vignette("custom-expectations)` has been overhauled to make it much clearer how to create high-quality expectations (#2113, #2132, #2072).
45+
* `vignette("custom-expectations")` has been overhauled to make it much clearer how to create high-quality expectations (#2113, #2132, #2072).
4646
* `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).
4747
* `expect_snapshot_value()` can now handle expressions that generate `-` (#1678) or zero length atomic vectors (#2042).
4848
* `expect_matches()` failures should be a little easier to read (#2135, #2181).

0 commit comments

Comments
 (0)