internal/

directory
v0.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2026 License: Apache-2.0

Directories

Path Synopsis
Package a11y checks app source code for UI that tb cannot detect or tap.
Package a11y checks app source code for UI that tb cannot detect or tap.
Package annotate draws on a finished screen recording what a person watching it needs to follow the run (`tb test --record --annotate`): a ring where each tap, double tap and long press landed (a ring that moves along a swipe), and, in a band added below the recording, the step that is running.
Package annotate draws on a finished screen recording what a person watching it needs to follow the run (`tb test --record --annotate`): a ring where each tap, double tap and long press landed (a ring that moves along a swipe), and, in a band added below the recording, the step that is running.
Package changes is how tb waits for the screen to change: the one rule for what a device event says about the screen (News), and the wait between two reads of the screen that rests on it (Watch), with its silence safety net.
Package changes is how tb waits for the screen to change: the one rule for what a device event says about the screen (News), and the wait between two reads of the screen that rests on it (Watch), with its silence safety net.
Package ci says whether tb runs in CI, where runners are slower than a developer's machine and some waits get more room or a second try (each such allowance says so where it is made; docs/architecture.md, "What CI mode changes", lists them).
Package ci says whether tb runs in CI, where runners are slower than a developer's machine and some waits get more room or a second try (each such allowance says so where it is made; docs/architecture.md, "What CI mode changes", lists them).
Package connect opens a driver for a device, whatever its platform.
Package connect opens a driver for a device, whatever its platform.
Package daemon is the long-lived `tb` background process.
Package daemon is the long-lived `tb` background process.
Package device finds the Android devices and iOS simulators this machine can drive.
Package device finds the Android devices and iOS simulators this machine can drive.
Package devlock gives one tb process at a time a device: an Android device or emulator, or an iOS simulator.
Package devlock gives one tb process at a time a device: an Android device or emulator, or an iOS simulator.
Package driver defines how the engine talks to one device.
Package driver defines how the engine talks to one device.
android
Package android drives an Android device or emulator through the Test Buddy agent.
Package android drives an Android device or emulator through the Test Buddy agent.
ios
Package ios drives a booted iOS simulator through the Test Buddy XCUITest runner (agents/ios), which serves docs/protocol.md on 127.0.0.1:<port>.
Package ios drives a booted iOS simulator through the Test Buddy XCUITest runner (agents/ios), which serves docs/protocol.md on 127.0.0.1:<port>.
web
Package web drives a Chrome tab through the Chrome DevTools Protocol, as a Test Buddy device.
Package web drives a Chrome tab through the Chrome DevTools Protocol, as a Test Buddy device.
Package engine runs flows on a device, around device events.
Package engine runs flows on a device, around device events.
Package flow parses flow files (and Test Buddy's multi-device extension) into commands.
Package flow parses flow files (and Test Buddy's multi-device extension) into commands.
Package js runs the flow format's JavaScript: ${...} expressions, runScript files and evalScript, with these semantics:
Package js runs the flow format's JavaScript: ${...} expressions, runScript files and evalScript, with these semantics:
Package legacy keeps Maestro flows working under tb.
Package legacy keeps Maestro flows working under tb.
Package lint finds flow steps that run but are fragile: coordinates, match-order indexes, text that reads as an unintended regex, assertions that cannot fail, and flows that assert nothing, header keys tb does not read and keys written twice.
Package lint finds flow steps that run but are fragile: coordinates, match-order indexes, text that reads as an unintended regex, assertions that cannot fail, and flows that assert nothing, header keys tb does not read and keys written twice.
Package look turns a screen into a short listing an AI agent can read cheaply: one line per element a person can see or act on, each with a stable @ref.
Package look turns a screen into a short listing an AI agent can read cheaply: one line per element a person can see or act on, each with a stable @ref.
Package match finds the element a selector names on a screen, with the flow format's exact semantics: full-match, case-insensitive Java-style regexes over text/hint/accessibility text/error; deepest matches; relative filters intersected in hierarchy order; index by position or clickable-first.
Package match finds the element a selector names on a screen, with the flow format's exact semantics: full-match, case-insensitive Java-style regexes over text/hint/accessibility text/error; deepest matches; relative filters intersected in hierarchy order; index by position or clickable-first.
Package occlusion says what is drawn over an element on a screen: what would take a tap meant for it (its cover), and whether that cover is a bar that scrolling can bring the element clear of, or a modal layer (a drawer, a sheet, a dialog) that nothing but its own going can.
Package occlusion says what is drawn over an element on a screen: what would take a tap meant for it (its cover), and whether that cover is a bar that scrolling can bring the element clear of, or a modal layer (a drawer, a sheet, a dialog) that nothing but its own going can.
Package orchestrate runs flows across devices: a work queue over a device pool for suites, and multi-device flows where each device role runs its own commands.
Package orchestrate runs flows across devices: a work queue over a device pool for suites, and multi-device flows where each device role runs its own commands.
Package report writes test results: JUnit XML and HTML.
Package report writes test results: JUnit XML and HTML.
Package session is what the daemon serves to agents: persistent device connections, named devices (alice, bob), compact screen listings with stable refs, command runs that answer with what changed, event-driven waits and watches, and recording passed commands into a flow.
Package session is what the daemon serves to agents: persistent device connections, named devices (alice, bob), compact screen listings with stable refs, command runs that answer with what changed, event-driven waits and watches, and recording passed commands into a flow.
Package tether runs a helper process that must not outlive tb: the screen recorders (`xcrun simctl io recordVideo`, `adb shell screenrecord`) a killed tb would otherwise leave recording until the simulator shuts down or the device's storage fills (issue #52).
Package tether runs a helper process that must not outlive tb: the screen recorders (`xcrun simctl io recordVideo`, `adb shell screenrecord`) a killed tb would otherwise leave recording until the simulator shuts down or the device's storage fills (issue #52).
Package timeline records a flow run for its HTML timeline (`tb test --timeline`): each command as it starts and ends, nested as it ran; the screen after each command; where each tap and swipe went; and the trace lines written while each command ran.
Package timeline records a flow run for its HTML timeline (`tb test --timeline`): each command as it starts and ends, nested as it ran; the screen after each command; where each tap and swipe went; and the trace lines written while each command ran.
Package ui is the platform-neutral screen model: a tree of nodes read from a device.
Package ui is the platform-neutral screen model: a tree of nodes read from a device.
Package wire is the protocol between the host and the on-device agents.
Package wire is the protocol between the host and the on-device agents.
Package workspace finds the flows to run from the paths given to `tb test`, following Maestro's workspace rules (config.yaml flows globs, include/exclude tags, executionOrder).
Package workspace finds the flows to run from the paths given to `tb test`, following Maestro's workspace rules (config.yaml flows globs, include/exclude tags, executionOrder).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL