Crate test_ui_wakeup
source ·Expand description
Test that the Rerun Viewer UI wakes up as new messages arrive, even if the viewer is hidden.
§Test setup - build the viewer
pixi run rerun-build
pixi run rerun-build-web
§Test matrix
- Run
cargo r -p test_ui_wakeup
and test:- That the viewer wakes up in the background when it’s alt-tabbed
- That the viewer wakes up when minimized (it should log “Received a message from…”)
- Run
cargo r -p test_ui_wakeup -- --serve
and test:- The viewer wakes up when browser is alt-tabbed away
- Switch to a different browser tab, send a few messages, switch back. The messages should be there (this is not a conclusive test, as the messages might have been received on tab select)
- Run
cargo r -p test_ui_wakeup -- --save stream.rrd
and in another terminal start the viewer withpixi run rerun stream.rrd
and test: - The viewer is updated on every new message (every ENTER press)
Structs§
- Args 🔒
Functions§
- main 🔒