You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed while working on rstudio/shinycoreci-apps#2 that shiny::runTests() doesn't source app.R before sourcing files in tests/.
It only sources files in R/ (if there are any), globals.R and server.R, depending on the value of shiny.autoload.r.
This is problematic if your app consists only of an app.R, but your app.R contains functions (or module functions) that you wish to test.
I think we should source app.R after any files in R/, but I'm open to suggestions about how we should handle the presence of app.R combined with the presence of server.R/globals.R. I figure at a minimum we should signal a warning.
The text was updated successfully, but these errors were encountered:
I noticed while working on rstudio/shinycoreci-apps#2 that
shiny::runTests()
doesn't sourceapp.R
before sourcing files intests/
.It only sources files in
R/
(if there are any),globals.R
andserver.R
, depending on the value ofshiny.autoload.r
.This is problematic if your app consists only of an
app.R
, but yourapp.R
contains functions (or module functions) that you wish to test.I think we should source
app.R
after any files inR/
, but I'm open to suggestions about how we should handle the presence ofapp.R
combined with the presence ofserver.R
/globals.R
. I figure at a minimum we should signal a warning.The text was updated successfully, but these errors were encountered: