Questions tagged [shinytest]

9 questions
1
vote
1 answer

how to combine shinytest2 and ggplot2 output if sometimes expect a message instead of a plot

my app returns a ggplot - or - a message to the user why the plot isn't generated the mesage is created with validate(need()) I haven't been able to figure out how to make this work with shinytest2 here's the example from Robust testing updated to…
KJB
  • 121
  • 6
1
vote
0 answers

ReferenceError: Can't find variable: Pickr when running shinytest::recordTest()

I am currently working on an RShiny App which became pretty big and hence I want to implement automated UI testing. I therefore tried to record my UI tests with recordTest() from the shinytest package. However, when I run shinytest::recordTest(), I…
e_k
  • 11
  • 1
1
vote
1 answer

How to detect 'shinytest' is running a Shiny app?

I've found a bug in 'shinytest' with 'rhandsontable' when using 'hot_validate_numeric'. In short, this code causes a problem with 'shinytest': output[["hot2"]] <- renderRHandsontable({ rhandsontable(head(iris)) %>% …
Stéphane Laurent
  • 75,186
  • 15
  • 119
  • 225
0
votes
0 answers

Test standalone shiny app for a single shiny module

Is there an easy way to test if a standalone shiny app, built for a single module, is running (also to get more code coverage)? To give some background, I've built a shiny app consisting of several modules. For each of the modules, I've built a…
moremo
  • 315
  • 2
  • 11
0
votes
1 answer

Order difference between 'shinytest' expected and current json files

I have an ordinary shinytest script to test my Shiny app. When I run it with shinytest::testApp, it is successful: both the JSON files and the images are similar between current and expected. But when the test is ran via testhat: expect_pass( …
Stéphane Laurent
  • 75,186
  • 15
  • 119
  • 225
0
votes
1 answer

How to use 'shinytest' with 'golem'?

I'm new to 'golem'. So far I did my Shiny apps as packages, with the app in the folder inst/app, and then to use 'shinytest' I made a folder inst/app/shinytest. How to do with 'golem'? There's no app folder: inst/app only contains www, and the UI…
Stéphane Laurent
  • 75,186
  • 15
  • 119
  • 225
0
votes
0 answers

Simulating user inputs for R shiny

I have an R shiny app that allows users to upload a dataset, interactively subset it and then save it to the server. I also have several test files that are structured just like the files expected from the future users. I would like to write an…
Ju Ko
  • 466
  • 7
  • 22
0
votes
0 answers

R/Shiny - Shinytest JS interpreter can not work with Promise and has old JS Standart

I want to use the R package shinytest to test my R/Shiny application. Now, I facing one strange issue after another. It seams that the JavaScript Interpreter of "shinytest" or which runs in the background can not work with Promise, neither simple…
Allan Karlson
  • 453
  • 11
  • 23
0
votes
1 answer

How to avoid shinytest ambiguities with navbarMenu entries having identical names?

This is my very simple Shiny app.R. As you see, there are sub-menu entries having the same names under the two top menu entries: library(shiny) ui <- basicPage( navbarPage("App", id = "nav", navbarMenu("Top 1", # id = "top1", …
bers
  • 4,817
  • 2
  • 40
  • 59