ThinkR-open / golem

A Framework for Building Robust Shiny Apps
https://thinkr-open.github.io/golem/
Other
885 stars 130 forks source link

Make `tests/testthat/test-utils.R` work interactively [FR] #1073

Closed ilyaZar closed 11 months ago

ilyaZar commented 11 months ago

Is your feature request related to a problem? To conveniently add additions and tests for R/utils.R the tests associated with this file should pass non-interactively (which they do) and interactively (which they don't).

The latter is useful for dev-work which sometimes has repeated devtools::test_active_file() calls for that file.

Currently, devtools::test_active_file() fails for tests/testthat/test-utils.R

image

Eventually, it might also be useful to have a higher test coverage for R/utils.R for which refactoring that file might be useful too.

Describe the solution you'd like

  1. change tests/testthat/test-utils.R so that devtools::test_active_file() passes without error

Additional context

ilyaZar commented 11 months ago

Close:

forgot to call devtools::load_all() ....