Comments (3)
Definitely sg to think about. I also think that the snapshot feature can be useful for the tests, I am just not sure how. An initial idea:
- We inject the snapshot support into the app when starting it up in
shinyapp$new()
, every time. - Add an
app$browse()
method that- does the snapshotting in phantom.
- opens the app from the snapshot in an actual browser.
My only worry for this is that the snapshotting feature does not work for all apps. But there is not much we can do about that....
from shinytest.
Yeah, that's exactly what I was thinking.
I think the way the statesaving feature currently works is that the enablebookmarking
function makes some global variable set, so before injecting, we could check if that variable is already set or not. There's going to be some issues to think about, but I'm glad you're onboard, browse is going to be a very powerful tool. And it's ok if it doesn't work for ALL apps because it's a convenience feature, it's not a testing function
from shinytest.
Closing as I already opened a newer issue for this
from shinytest.
Related Issues (20)
- Move `master` branch to `main` HOT 1
- Difference in json file generation between devtools::test() and devtools::check() HOT 21
- Error with recordTest
- Feature request: allow for small differences in cross-platform screenshot comparison HOT 1
- Bug shinytest with rhandsontable when using `hot_validate_numeric` HOT 1
- expected != current because of DT HOT 2
- Incorrect tree in documentation of Shiny app in package
- Not rendered Plotly generates invalid char in 001.json when running mytest.R HOT 2
- Feature request: `testApp(..., update = FALSE)` HOT 1
- ShinyDriver code inspection fails when using purrr-style functional notation
- Can't make test without snapshot (or how to check if your app starts without errors)
- recordTest()/ShinyDriver NULL navbarPage() input for bslib::bs_theme(version = 5) HOT 3
- Feature request: test deployed app which is not in test mode
- Custom Shiny input doesn't work with shinytest
- cannot find values special character in input names
- exportTestValues() fails when a test value has a reactive dependency
- testServer error: '' does not exist in current working directory when trying to find data files HOT 1
- AppDriver$new registers the app path with `devtools::test()` but fails with `devtools::check()`
- shinytest::recordTest() does not ork with shinyWidgets::colorPickr()
- Can't change attributes with executeScriptAsync()
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shinytest.