Skip to content

Commit

Permalink
shinytest2 app will start, spatial not running
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarah Endicott committed Aug 30, 2024
1 parent 82ea919 commit 42c452f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
3 changes: 2 additions & 1 deletion R/ccvi_app.R
Original file line number Diff line number Diff line change
Expand Up @@ -1643,7 +1643,8 @@ ccvi_app <- function(testmode_in, ...){
out_data_lst$index <- bind_cols(ind_df, conf_df, vuln_df)
})

exportTestValues(out_data = shiny::reactiveValuesToList(out_data_lst))
exportTestValues(out_data = shiny::reactiveValuesToList(out_data_lst),
doSpatial = doSpatial())

# # helpful for testing
# shinyjs::runcodeServer()
Expand Down
3 changes: 0 additions & 3 deletions tests/testthat/app/app.R

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,18 @@ library(ccviR)
# call for snapshot review
# testthat::snapshot_review('run_ccvi_app/', path = 'tests/testthat/app/')

Sys.setenv(
CHROMOTE_CHROME = "C:/Users/EndicottS/AppData/Local/Google/Chrome/Application/chrome.exe"
)

# Note seems you need to shut Chrome for it to work

test_that("{shinytest2} app test", {
# Don't run these tests on the CRAN build servers
skip_on_cran()
skip_on_ci()
app <- AppDriver$new(".", name = "ccviR", seed = 7)
app_obj <- run_ccvi_app("demo", test.mode = TRUE)
app <- AppDriver$new(app_obj, name = "ccviR", seed = 7)
# app <- AppDriver$new("tests/testthat/app", name = "ccviR", seed = 7)

# Update output value
Expand Down
2 changes: 0 additions & 2 deletions tests/testthat/test-app.R

This file was deleted.

0 comments on commit 42c452f

Please sign in to comment.