-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Re-run tests on R 4.4 * `use_tidy_github_actions()` * Install XQuartz for `png()` * Freshen up crashing test and only run on 4.4 and later * Update snapshots/bump evaluate
- Loading branch information
Showing
13 changed files
with
75 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
R4.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# variants save different values | ||
|
||
Code | ||
r_version() | ||
Output | ||
[1] "R4.4" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,17 @@ | ||
test_that("crash", { | ||
# https://github.com/r-lib/rlang/commit/c84d52b6 | ||
skip_if_not_installed("rlang", "1.0.1.9000") | ||
|
||
skip_on_cran() | ||
skip_on_covr() | ||
skip_if_not(getRversion() >= "4.4.0") | ||
|
||
withr::local_envvar(TESTTHAT_PARALLEL = "TRUE") | ||
|
||
do <- function() { | ||
err <- NULL | ||
pkg <- test_path("test-parallel", "crash") | ||
err <- callr::r(function() { | ||
tryCatch( | ||
testthat::test_local(".", reporter = "summary", stop_on_failure = FALSE), | ||
error = function(e) err <<- e | ||
error = function(e) e | ||
) | ||
err | ||
} | ||
|
||
pkg <- test_path("test-parallel", "crash") | ||
err <- callr::r(do, wd = pkg) | ||
}, wd = pkg) | ||
expect_s3_class(err, "testthat_process_error") | ||
expect_equal(err$test_file, "test-crash-3.R") | ||
}) |
2 changes: 1 addition & 1 deletion
2
tests/testthat/test-parallel/crash/tests/testthat/test-crash-3.R
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
test_that("this crashes", { | ||
expect_true(TRUE) | ||
expect_true(FALSE) | ||
asNamespace("callr")$crash() | ||
rlang::node_car(0) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters