Skip to content

Testing Deep Stack Traces #4286

@shikokuchuo

Description

@shikokuchuo

I think it was mentioned that deep stack traces aren't currently being tested.

This was precisely the one thing that I nearly broke prior to releasing mirai 2.5.0.

library(shiny)
library(mirai)

ui <- fluidPage(
  textOutput("out")
)

server <- function(input, output, session) {
  output$out <- renderText({
    mirai({
      Sys.sleep(1)
      elephant()
    })
  })
}

shinyApp(ui, server)

The above should throw a warning in the console, showing the deep stack trace.

@schloerke if shinytest2 can already handle this, then I suggest we find a way to get this into shinycoreci. Otherwise let's think of a way to do this other than manually! Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions