Skip to content

Commit

Permalink
remove '../' from loadSupport calls as they will be found automatical…
Browse files Browse the repository at this point in the history
…ly now
  • Loading branch information
schloerke committed Apr 23, 2020
1 parent e50981c commit 0f580ff
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion inst/app_template/tests/testthat.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ library(testthat)
test_dir(
"./testthat",
# Run in the app's environment containing all support methods.
env = shiny::loadSupport("../"),
env = shiny::loadSupport(),
# Display the regular progress output and throw an error if any test error is found
reporter = c("progress", "fail")
)
2 changes: 1 addition & 1 deletion tests/test-helpers/app1-standard/tests/runner2.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


withr::with_environment(
shiny::loadSupport("../"),
shiny::loadSupport(),
{
runner2_B <- 2

Expand Down
2 changes: 1 addition & 1 deletion tests/test-modules/107_scatterplot/tests/testthat.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ library(testthat)

test_dir(
"./testthat",
env = shiny::loadSupport("../"),
env = shiny::loadSupport(),
reporter = c("progress", "fail")
)
2 changes: 1 addition & 1 deletion tests/test-modules/12_counter/tests/testthat.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ library(testthat)
# the supporting files that were already loaded into that env.
testthat::test_dir(
"./testthat",
env = shiny::loadSupport("../"),
env = shiny::loadSupport(),
reporter = c("summary", "fail")
)

0 comments on commit 0f580ff

Please sign in to comment.