rstudio / shinytest

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

Implement inform_where() #360

Closed hadley closed 4 years ago

hadley commented 4 years ago

Works like inform() but also tells you where the message came from. Fixes #127.

I have zero clues about how to test it, but this gives you an idea of what the output will look like:


f <- function() g()
g <- function() h()
h <- function() inform_where("Bad things happened")

#> Bad things happened
#>     █
#>  1. └─global::f()
#>  2.   └─global::g() ~/Desktop/test.R:2:5
#>  3.     └─global::h() ~/Desktop/test.R:3:5