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
A few problems here:
* `describe()` forgot to `substitute()` code.
* `StopReporter` was called at the end of every (sub)test instead of just once. This also reqiured changes to `local_interactive_reporter()`
* `StopReporter()` doesn't need the call in its error
* In `test_code()` needs to accumulate expectations across its children
* Dropped `test_code()` braces check since it no longer seems needed and makes all the functions exactly the same.
Fixes#2063. Fixes#2188.
Copy file name to clipboardExpand all lines: NEWS.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
# testthat (development version)
2
2
3
+
*`test_that()` no longer warns about the absence of `{}` since it no longer seems to be necessary.
4
+
*`test_that()`, `describe()`, and `it()` can now be arbitrarily nested. Each component will skip only if it and its subtests don't contain any expectations. The interactive stop reporter has been fixed so it doesn't duplicate failures. (#2063, #2188).
3
5
* Test filtering now works with `it()`, and the `desc` argument can take a character vector in order to recursively filter subtests (i.e. `it()` nested inside of `describe()`) (#2118).
4
6
* New `snapshot_reject()` rejects all modified snapshots by deleting the `.new` variants (#1923).
5
7
* New `SlowReporter` makes it easier to find the slowest tests in your package. The easiest way to run it is with `devtools::test(reporter = "slow")` (#1466).
0 commit comments