Skip to content

Update vignette advice for migrating to {testthat} 3e #2080

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions vignettes/parallel.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@ The other built-in reporters all support parallel tests, with some subtle differ
`ProgressReporter` does not update its display until a test file is complete.

- The standard output and standard error, i.e. `print()`, `cat()`, `message()`, etc. output from the test files are lost currently.
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`:
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 `DebugReporter`:

``` r
devtools::test(filter = "badtest", reporter = "check")
devtools::test(filter = "badtest", reporter = "debug")
```

### Writing parallel reporters
Expand Down
1 change: 0 additions & 1 deletion vignettes/third-edition.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ Most of these functions have not been recommended for a number of years, but bef
This was an overly clever API that I regretted even before the release of testthat 1.0.0.

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

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