You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since Stipple and StippleUI's functionality grew a lot over time, the danger of breaking some of the functionality even if tests pass is high. Some of the functionality cannot be tested with the standard testing.
Here I want to discuss how app testing can be achieved - maybe not on CI but at least locally, to track bugs before releasing them.
I find that Electron.jl has all functionality for local testing, but I think headless testing might still be difficult. Happy to discuss this here.
My current setup for app testing:
using Stipple, Stipple.ReactiveTools
using StippleUI
using Electron
using GLFW
url ="http://localhost:8000"
win =Window(URI(url), options =Dict(
"transparent"=>true, # if you like it"width"=> GLFW.primarymonitorresolution()[1], # full screen if required"height"=> GLFW.primarymonitorresolution()[2],
))
toggle_devtools(win) # if required# run executes a command at the browser's console
ready::Bool=falsefor i =1:60
ready =run(win, "window.GENIEMODEL ? GENIEMODEL.isready : false")
ready &&breaksleep(1)
endtryrun(win, "GENIEMODEL.mytext = 'Hello World'")
catch e
error(e)
end
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Since Stipple and StippleUI's functionality grew a lot over time, the danger of breaking some of the functionality even if tests pass is high. Some of the functionality cannot be tested with the standard testing.
Here I want to discuss how app testing can be achieved - maybe not on CI but at least locally, to track bugs before releasing them.
I find that Electron.jl has all functionality for local testing, but I think headless testing might still be difficult. Happy to discuss this here.
My current setup for app testing:
Beta Was this translation helpful? Give feedback.
All reactions