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

10 add tests #11

Merged
merged 2 commits into from
Jul 15, 2024
Merged

10 add tests #11

merged 2 commits into from
Jul 15, 2024

Conversation

stephaniereinders
Copy link
Member

No description provided.

Previously, I ran into errors when trying to use testthat and shinytest2. The tests would pass devtools::test(), but fail on devtools::check(). The latter would try to run shinytest2::test_app() which wouldn't load the functions in the R folder so the tests all failed. I asked for help on Posit but no one has responded yet.

I undid all changes related to testing and then ran `usethis::use_test("server-utils")` to setup the testthat environment. So far, I have only created a single test that checks that `create_dir()` works.

devtools::check() passes with 0 errors, 0 warnings, and 0 notes.
@stephaniereinders stephaniereinders linked an issue Jul 15, 2024 that may be closed by this pull request
@stephaniereinders stephaniereinders merged commit 9d144f7 into main Jul 15, 2024
@stephaniereinders stephaniereinders deleted the 10-add-tests branch September 3, 2024 17:51
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.

Add tests to package
1 participant