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
If a regular unit test (outside of shiny) fails, an easy way to debug it is to put a browse() statement just before the offending line, so that you can see exactly what the state is.
It would be great to be able to replicate that behaviour when testing shiny apps. One idea is to let you launch the app in a "spectator" mode where the app actually launches in a proper browser with UI, and you can click a button to say "run the next command in the test script" or inspect the state of everything. Another idea is to be able to place a shinytest::browse_app() command inside the test script, and when this command is reached then the app is launched and lets the user see the current state.
Perhaps this is too ambitious :)
The text was updated successfully, but these errors were encountered:
Another option, perhaps simpler?, would be to run the shiny app in the main RStudio UI, even though the client is running in a headless slave process. This way one could set breakpoints etc to debug the app while the test script executes.
Failing that, could we at least get a traceback in the error response?
Related to #26
If a regular unit test (outside of shiny) fails, an easy way to debug it is to put a
browse()
statement just before the offending line, so that you can see exactly what the state is.It would be great to be able to replicate that behaviour when testing shiny apps. One idea is to let you launch the app in a "spectator" mode where the app actually launches in a proper browser with UI, and you can click a button to say "run the next command in the test script" or inspect the state of everything. Another idea is to be able to place a
shinytest::browse_app()
command inside the test script, and when this command is reached then the app is launched and lets the user see the current state.Perhaps this is too ambitious :)
The text was updated successfully, but these errors were encountered: