Skip to content

ex6) testServer test for table formatting #7

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

russHyde
Copy link
Collaborator

This checks that column names are updated from one form to another before presentation by the app.
testServer was used to demonstrate how to test against server-side components.

This fails to get the shinytest2 test to run (unless unstats is
installed) because are references to unstats::un_data in the app code.
Any references to the package-under-development can be problematic,
because the R session where the app runs must have access to the package
itself.
Note that pkgload is added to Suggests rather than Imports.
golem::add_rstudioconnect_file() adds pkgload to Imports, which throws a
'note' in R CMD check (because the package doesn't actually use it).
This circumvents problems with loading the dev version of the package
into the session where the app runs during tests, because it uses
pkgload::load_all() in the app.R file.
…MD check

But always remember to 'install' your package before using
devtools::test()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant