self_test_bridge 2.0.0
self_test_bridge: ^2.0.0 copied to clipboard
The socket and the report server for self_test: drives a running Flutter app from outside it, and serves each run as a local web page.
2.0.0 - 2026-09-16 #
First release on pub.dev. Before this the bridge was publish_to: none and a
consumer had to name a git dependency, which is a poor answer for the half of
self_test that carries the socket, the report page and everything the command
line talks to.
Fixed #
-
A back press at the root no longer closes the app.
goBackanswered an empty navigator withSystemNavigator.pop(). On iOS that does nothing, which is why it survived; on Android it puts the activity behind the launcher, and the bridge lives inside the app, so leaving the app takes the bridge with it. Every scenario opens with five or sixgoBacks, so the first one backgrounded the app and the next command timed out against a socket nobody was left to answer, while the pid, the port andadb forwardall still looked healthy. Nothing left to pop is now a no-op reported aspopped: false. -
The runs list no longer squashes the scripts list. With
flex: 0 1 autothe runs pane, which grows all day, pushed the scripts pane down to a third of its own content, and three scripts already had to be scrolled. -
A step that names no widget is shown without a locator line, instead of an empty one.
Added #
-
The report page shows what the app threw during a run, under the step that caused it and in the exported HTML, apart from the step's own error. A replay refusing and an app breaking are different failures, and reading one as the other sends a reader looking for a widget that was never the problem.
-
An imported script may carry a compound
mockChannelstep, so one step can answer a plugin whose generated channel differs per platform. -
assertAboveis accepted by the importer and drawn in thecheckfamily.
Changed #
- The page builds its colours from
SelfTestPalette, which the in-app panel also uses, so a run reads the same in a browser and on the device. A test pins the two together.
1.0.0 #
Shipped alongside self_test 1.0.0, from git rather than from pub.dev: the WebSocket bridge, the stored-script commands, and the report server with its page, export and script editor.