We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdd4f3a commit c253b45Copy full SHA for c253b45
.github/workflows/hook-tests.yaml
@@ -97,12 +97,15 @@ jobs:
97
- name: Test
98
run: |
99
pkgload::load_all()
100
- testthat::test_file(
101
- "tests/testthat/test-hooks.R",
102
- reporter = testthat::MultiReporter$new(list(
103
- testthat::CheckReporter$new(), testthat::FailReporter$new()
104
- ))
105
- )
+ hook_test_files <- as.character(fs::dir_ls('tests/testthat/', regexp = "test-hook-.*\\.R", type = "file"))
+ tester <- function(file) {
+ testthat::test_file(file,
+ reporter = testthat::MultiReporter$new(list(
+ testthat::CheckReporter$new(), testthat::FailReporter$new()
+ ))
106
+ )
107
+ }
108
+ purrr::walk(hook_test_files, tester)
109
shell: Rscript {0}
110
- name: Show testthat output
111
if: always()
0 commit comments