Open samssann opened 3 years ago
Is there a reason why sd_snapshot requires the tests/shinytest directory?
sd_snapshot() --> ShinyDriver$getSnapshotDir() --> sd_getSnapshotDir() --> findTestsDir()
Could the snapshot be saved in the same way that sd_takeScreenshot saves them?
path <- tempfile() app <- ShinyDriver$new(shinyApp(ui, server)) app$takeScreenshot(path, "plot") expect_snapshot_file(path, "plot-init.png")
I feel like this would uncomplicate snapshotting when using testthat framework for shiny application unit tests.
Is there a reason why sd_snapshot requires the tests/shinytest directory?
Could the snapshot be saved in the same way that sd_takeScreenshot saves them?
I feel like this would uncomplicate snapshotting when using testthat framework for shiny application unit tests.