Skip to content

Commit 6dd8896

Browse files
authored
Update vignette advice for migrating to {testthat} 3e (#2080)
1 parent ca8fe6a commit 6dd8896

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

vignettes/parallel.Rmd

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,7 @@ The other built-in reporters all support parallel tests, with some subtle differ
111111
`ProgressReporter` does not update its display until a test file is complete.
112112

113113
- The standard output and standard error, i.e. `print()`, `cat()`, `message()`, etc. output from the test files are lost currently.
114-
If you want to use `cat()` or `message()` for print-debugging test cases, then the best is to temporarily run tests sequentially, by changing the `Config` entry in `DESCRIPTION` or selecting a non-parallel reporter, e.g. the `CheckReporter`:
115-
116-
``` r
117-
devtools::test(filter = "badtest", reporter = "check")
118-
```
114+
If you want to use `cat()` or `message()` for print-debugging test cases, then the best is to temporarily run tests sequentially, by changing the `Config` entry in `DESCRIPTION` or setting `Sys.setenv(TESTTHAT_PARALLEL = "false")`.
119115

120116
### Writing parallel reporters
121117

vignettes/third-edition.Rmd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ Most of these functions have not been recommended for a number of years, but bef
8282
This was an overly clever API that I regretted even before the release of testthat 1.0.0.
8383

8484
- `expect_equivalent()` has been deprecated since it is now equivalent (HA HA) to `expect_equal(ignore_attr = TRUE)`.
85-
The main difference is that it won't ignore names; so you'll need an explicit `unname()` if you deliberately want to ignore names.
8685

8786
- `setup()` and `teardown()` are deprecated in favour of test fixtures.
8887
See `vignette("test-fixtures")` for details.

0 commit comments

Comments
 (0)