Skip to content

Commit

Permalink
reduce scope
Browse files Browse the repository at this point in the history
cf. #47
  • Loading branch information
IndrajeetPatil committed May 26, 2024
1 parent 2a2397d commit daf6ede
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/check-test-warnings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ jobs:

- name: Run Tests
run: |
options(crayon.enabled = TRUE, warn = 2L)
# testthat::test_dir("tests")
devtools::test()
pkgload::load_all()
test_script_paths <- testthat::find_test_scripts("tests/testthat")
test_with_warning_as_error <- function(...) {
withr::local_options(list(warn = 2L))
testthat::test_file(...)
}
purrr::walk(test_script_paths, test_with_warning_as_error)
shell: Rscript {0}

0 comments on commit daf6ede

Please sign in to comment.