-
Notifications
You must be signed in to change notification settings - Fork 321
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
expect_no_error() doesn't count? #2037
Comments
* Detect package requirements for plugins. Right now this is fairly manual. I'm working toward automating it more. We'll make the user tell us SOME things, but I'm trying to make it a light lift. Closes #322. * See if rsconnect picks up ggplot2 and safetyCharts automatically. * Another attempt to poke renv to see packages. * Quick test of dependency-library-er for shiny deployment. * Load packages on plugin read. * Function for shinyapps workflow. * Handle metrics with 0 flags. If a site doesn't have any flags, display a placeholder GT table. This isn't perfect but it's an easy, stop-gap fix. To test, update app.R, adding this filter to dfResults: `dfResults = dplyr::filter(gsm.app::sample_dfResults, GroupID != "0X159")`. * Document and export plugin dependency functions. * Document and test Plugin dependency functions and other uncovered pieces. * More documentation. * Plugins vignette. * Work around testthat 3.2.2 bug (r-lib/testthat#2037). * Use standardized function converter. Mostly. * Explicitly point to release file for gsm. * Try to make it find gsm 2.2.0. * Revert to normal gsm & wait. * Try a specific commit. * Revert to tag. This is what I want long-term. Let's use this one and see if we can make it work eventually. * One more try to pass the time. * Give shinyapps a GITHUB_PAT. We might have to supply a "real" PAT (with permissions to read other repos), at least until shinyapps fixes their bug (and it wouldn't hurt to have it in place to protect against future bugs). * Update shinyapps-deploy.yaml * Simplify shinyapps workflow. In theory it should finally work without the gt/gsm hacks.
All
|
Just ran into this as well. library(testthat)
test_that("expect_no_error", {
expect_no_error(1+1)
})
#> ── Skip: expect_no_error ───────────────────────────────────────────────────────
#> Reason: empty test
test_that("expect_equal", {
expect_equal(1+1, 2)
})
#> Test passed 😀 Created on 2025-01-07 with reprex v2.1.1 |
Should be fixed now (hopefully without breaking something different). I'll probably do a patch release in the next week or so. |
With testthat 3.2.2,
expect_no_error()
tests are skipped as "empty test".Created on 2024-12-11 with reprex v2.1.1
Session info
The text was updated successfully, but these errors were encountered: