Skip to content
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

{testthat} file loading #310

Open
schloerke opened this issue Jan 12, 2023 · 0 comments
Open

{testthat} file loading #310

schloerke opened this issue Jan 12, 2023 · 0 comments
Labels
theme: testthat file loading Could be fixed if testthat file loading was used in shiny process
Milestone

Comments

@schloerke
Copy link
Collaborator

Making an issue to consolidate conversation.

Bug

  • Dev code is not loaded in background Shiny R session
  • Unwanted as it requires package authors to install before testing

Approaches

  • Use {future}
    • {future} does not capture logging very well. Requires the Shiny app to shut down to get the output logs
      • This is a deal breaker
    • {future} does do a good job of capturing the dev R code
  • Use testthat code loading
    • Need to inspect testthat::test_local(load_package=)
      • Maybe a flag could be passed through to tell the Shiny R session to load code this way
      • When load_package="source", it eventually calls testthat:::test_files_setup_env() which calls a ramped up version of pkgload::load_all()

Resolution

Ideally, all labels with theme: testthat file loading could be resolved

@schloerke schloerke added the theme: testthat file loading Could be fixed if testthat file loading was used in shiny process label Jan 12, 2023
@schloerke schloerke added this to the v0.4.0 milestone Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme: testthat file loading Could be fixed if testthat file loading was used in shiny process
Projects
None yet
Development

No branches or pull requests

1 participant