rstudio / shinytest

Automated testing for shiny apps
https://rstudio.github.io/shinytest/
Other
225 stars 55 forks source link

Provide whole file snapshotting helper? #353

Open hadley opened 4 years ago

hadley commented 4 years ago

e.g.

expect_snapshot_screenshot <- function(app, id, name, parent = FALSE) {
  skip_on_ci()
  skip_on_cran()

  path <- tempfile()
  app$screenshot(path, id, parent = parent)
  expect_snapshot_file(path, name)
}
danielinteractive commented 3 years ago

Sounds like a great idea!