self_test_bridge 2.0.0 copy "self_test_bridge: ^2.0.0" to clipboard
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. goBack answered an empty navigator with SystemNavigator.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 six goBacks, 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 and adb forward all still looked healthy. Nothing left to pop is now a no-op reported as popped: false.

  • The runs list no longer squashes the scripts list. With flex: 0 1 auto the 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 mockChannel step, so one step can answer a plugin whose generated channel differs per platform.

  • assertAbove is accepted by the importer and drawn in the check family.

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.

0
likes
0
points
515
downloads

Publisher

unverified uploader

Weekly Downloads

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.

Repository (GitHub)
View/report issues

Topics

#testing #flutter #automation #websocket

License

unknown (license)

Dependencies

dio, flutter, self_test, shared_preferences, web_socket_channel

More

Packages that depend on self_test_bridge